From 52a53d3860aeebbf30920b144ca5b5bd633975f6 Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 25 Jul 2025 08:57:01 -0700 Subject: [PATCH] dont download update until approved --- src/lib/hooks/useOTAUpdates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/hooks/useOTAUpdates.ts b/src/lib/hooks/useOTAUpdates.ts index c7db986035..d235694ad8 100644 --- a/src/lib/hooks/useOTAUpdates.ts +++ b/src/lib/hooks/useOTAUpdates.ts @@ -75,7 +75,6 @@ export function useApplyPullRequestOTAUpdate() { await setExtraParamsPullRequest(channel) const res = await checkForUpdateAsync() if (res.isAvailable) { - await fetchUpdateAsync() Alert.alert( 'Deployment Available', `A deployment of ${channel} is availalble. Applying this deployment may result in a bricked installation, in which case you will need to reinstall the app and may lose local data. Are you sure you want to proceed?`, @@ -88,6 +87,7 @@ export function useApplyPullRequestOTAUpdate() { text: 'Relaunch', style: 'default', onPress: async () => { + await fetchUpdateAsync() await reloadAsync() }, },