2 * What is this? The BE now adds the coupon asynchronously to the subscription. So the client first receives
3 * an event loop update with the new subscription without the coupon, and then another event loop update
4 * 30s later with the coupon.
6 * To determine if a user is eligible for a BF offer it checks the coupon of the subscription. Since it's
7 * updated without, it thinks the user is eligible for another offer.
9 * This is a temporary workaround that when a subscription happens with the bf offer coupon, we set
10 * something temporarily in the app to identify that it has been used.
12 export let usedBfOffer = false;
14 export const setUsedBfOffer = (value: boolean) => {