fix: remove ternary and use && to avoid null for false

pull/2277/head
Agusti Fernandez Pardo 2022-04-13 15:57:43 +02:00
parent 77a449c1cc
commit 5c0e31ab01
1 changed files with 2 additions and 2 deletions

View File

@ -37,11 +37,11 @@ export default function ApiKeyListItem(props: { apiKey: TApiKeys; onEditApiKey:
<span className="text-gray-900"> <span className="text-gray-900">
{props?.apiKey?.note ? props?.apiKey?.note : t("api_key_no_note")} {props?.apiKey?.note ? props?.apiKey?.note : t("api_key_no_note")}
</span> </span>
{!neverExpires && isExpired ? ( {!neverExpires && isExpired && (
<Badge className="-p-2" variant="default"> <Badge className="-p-2" variant="default">
{t("expired")} {t("expired")}
</Badge> </Badge>
) : null} )}
</div> </div>
<div className="mt-2 flex"> <div className="mt-2 flex">
<span <span