From 10618ae2170b93f7a4be39f071522d0a201de298 Mon Sep 17 00:00:00 2001 From: Jack Matthews Date: Wed, 5 Apr 2023 12:34:35 -0400 Subject: [PATCH] [Hotfix] Destructure arguments for url quickinstall after checking key --- src/ui/quickInstall/url.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/quickInstall/url.ts b/src/ui/quickInstall/url.ts index 8118f12..6294e80 100644 --- a/src/ui/quickInstall/url.ts +++ b/src/ui/quickInstall/url.ts @@ -8,8 +8,10 @@ import { showToast } from "@ui/toasts"; const showSimpleActionSheet = findByProps("showSimpleActionSheet"); -export default () => after("showSimpleActionSheet", showSimpleActionSheet, ([{ key, header: { title: url }, options }]) => { - if (key !== "LongPressUrl") return; +export default () => after("showSimpleActionSheet", showSimpleActionSheet, (args) => { + if (args[0].key !== "LongPressUrl") return; + + const { header: { title: url }, options } = args[0]; let urlType: string; if (url.startsWith(PROXY_PREFIX)) {