Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix unable to change plan on buy-plan screen

Ammar Ahmed281a973c370c
diff --git a/apps/mobile/app/components/paywall/index.tsx b/apps/mobile/app/components/paywall/index.tsx
index cdc8d9bf8..65e513bce 100644
--- a/apps/mobile/app/components/paywall/index.tsx
+++ b/apps/mobile/app/components/paywall/index.tsx
@@ -112,7 +112,8 @@ const PayWall = (props: NavigationProps<"PayWall">) => {
}
setStep(Steps.buy);
}
- }, [pricingPlans, routeParams.state]);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [routeParams.state]);
useEffect(() => {
let listener: NativeEventSubscription;