From 812e861e107a6fc420da4b45e68770068fbf2a49 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Mon, 20 Nov 2023 17:29:31 -0600 Subject: [PATCH] hide gift link ios --- src/routes/Send.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/routes/Send.tsx b/src/routes/Send.tsx index 77f319b..ae03baa 100644 --- a/src/routes/Send.tsx +++ b/src/routes/Send.tsx @@ -659,6 +659,13 @@ export function Send() { return !destination() || sending() || amountSats() === 0n || !!error(); }); + const shouldShowGiftLink = createMemo(() => { + // iOS users should only see gift link if they're mutiny+ subscribers + const isIOS = Capacitor.getPlatform() === "ios"; + + return !isIOS || state.mutiny_plus; + }); + return ( @@ -837,9 +844,11 @@ export function Send() { -
- -
+ +
+ +
+