chore: displaying N/A for 0 server

This commit is contained in:
Junseo Park 2021-02-14 13:32:49 +09:00
parent 0eb5004e05
commit df1c71e021
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => {
} }
dark dark
/> />
<Tag blurple text={<>{formatNumber(bot.servers)} </>} dark /> <Tag blurple text={bot.servers ? <>{formatNumber(bot.servers)} </> : 'N/A'} dark />
</div> </div>
</div> </div>
<p className='px-4 text-left text-gray-400 text-sm font-medium mb-10 h-6'>{bot.intro}</p> <p className='px-4 text-left text-gray-400 text-sm font-medium mb-10 h-6'>{bot.intro}</p>

View File

@ -119,7 +119,7 @@ const Bots: NextPage<BotsProps> = ({ data, date, user, theme, setTheme }) => {
<div> <div>
<i className='fas fa-users' /> <i className='fas fa-users' />
</div> </div>
<div>{data.servers}</div> <div>{data.servers || 'N/A'}</div>
<div> <div>
<i className='fas fa-calendar-day' /> <i className='fas fa-calendar-day' />
</div> </div>