From c799caac3c90ce017fe1ac402aa0634374b30fa5 Mon Sep 17 00:00:00 2001 From: Aj Wazzan Date: Tue, 15 Apr 2025 13:34:27 -0700 Subject: [PATCH] Add decide method for feature gate creation --- apps/mail/lib/flags.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/mail/lib/flags.ts b/apps/mail/lib/flags.ts index 97e8143ee..07ca4de31 100644 --- a/apps/mail/lib/flags.ts +++ b/apps/mail/lib/flags.ts @@ -12,4 +12,7 @@ export const createFeatureGate = (key: string) => flag({ key, adapter: statsigAdapter.featureGate((gate) => gate.value, { exposureLogging: true }), identify, + decide() { + return Math.random() > 0.1; + }, }); \ No newline at end of file