1
0
Fork 0
mirror of synced 2024-07-11 09:15:48 +12:00

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

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)
} }