fix: remove ternary and use && to avoid null for false
parent
77a449c1cc
commit
5c0e31ab01
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue