mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-09 20:09:36 +02:00
mobile: fix api key shows expired status if set to never expire
This commit is contained in:
committed by
Abdullah Atta
parent
5ba3233055
commit
d8bc12287c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user