fix: updated flag check for undefiend (#41205)

updated check
This commit is contained in:
Ali Waseem authored and GitHub committed 2025-12-09 13:13:02 -07:00
1 parent 6f33a251f1
commit f23f8d8594
2 files changed
+2 -2

No files matched your search

@@ -79,7 +79,7 @@ export const SecretAPIKeys = () => {
isError: isErrorApiKeys,
} = useAPIKeysQuery({ projectRef, reveal: false }, { enabled: canReadAPIKeys })
const hideApiKeyLastUsed = useFlag('HideApiKeyLastUsed')
const hideApiKeyLastUsed = useFlag('HideApiKeyLastUsed') ?? true
const { data: lastSeen, isLoading: isLoadingLastSeen } = useLastSeen(
projectRef ?? '',
!hideApiKeyLastUsed
@@ -51,7 +51,7 @@ export const DisplayApiSettings = ({
// api keys should not be empty. However it can be populated with a delay on project creation
const isApiKeysEmpty = apiKeys.length === 0
const hideApiKeyLastUsed = useFlag('HideApiKeyLastUsed')
const hideApiKeyLastUsed = useFlag('HideApiKeyLastUsed') ?? true
const { isLoading: isLoadingLastUsed, logData: lastUsedLogData } = useLastUsedAPIKeysLogQuery(
projectRef!,
!hideApiKeyLastUsed