mobile: fix api key shows expired status if set to never expire

This commit is contained in:
Ammar Ahmed
2026-05-21 23:20:16 +05:00
committed by Abdullah Atta
parent 5ba3233055
commit d8bc12287c

View File

@@ -364,7 +364,8 @@ function ApiKeyItem({ apiKey, onRevoke, isAtEnd }: ApiKeyItemProps) {
}
}, [viewing]);
const isApiKeyExpired = Date.now() > apiKey.expiryDate;
const isApiKeyExpired =
apiKey.expiryDate !== -1 && Date.now() > apiKey.expiryDate;
return (
<View