Fix issue where flagClient could be undefined when running outside of test mode
This commit is contained in:
parent
edb6d95edd
commit
50078f4f0f
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue