Fix issue where flagClient could be undefined when running outside of test mode

This commit is contained in:
Peter Clement 2024-01-19 14:59:08 +00:00
parent edb6d95edd
commit 50078f4f0f
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ export async function setTestFlag(id: string) {
} }
export async function checkTestFlag(id: string) { export async function checkTestFlag(id: string) {
const flag = await flagClient.get(id) const flag = await flagClient?.get(id)
return !!(flag && flag.testing) return !!(flag && flag.testing)
} }