From ee8f8939ad1280e03fe18b89929bd5ef6ad6cb90 Mon Sep 17 00:00:00 2001 From: IsaccoSordo Date: Mon, 22 Jul 2024 08:13:13 +0200 Subject: [PATCH] chore: revert kukai migration --- packages/beacon-ui/src/ui/alert/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/beacon-ui/src/ui/alert/index.tsx b/packages/beacon-ui/src/ui/alert/index.tsx index a5d561d82..f9d84f6a9 100644 --- a/packages/beacon-ui/src/ui/alert/index.tsx +++ b/packages/beacon-ui/src/ui/alert/index.tsx @@ -486,7 +486,10 @@ const openAlert = async (config: AlertConfig): Promise => { let link = '' - if (wallet.supportedInteractionStandards?.includes('wallet_connect')) { + if ( + wallet.supportedInteractionStandards?.includes('wallet_connect') && + !wallet.name.toLowerCase().includes('kukai') + ) { const uri = await generateLink() if (!uri) { @@ -580,7 +583,10 @@ const openAlert = async (config: AlertConfig): Promise => { }) ) - if (wallet?.types.includes('web') && wallet?.types.length === 1) { + if ( + (wallet?.types.includes('web') && wallet?.types.length === 1) || + (isAndroid(window) && wallet?.name.toLowerCase().includes('kukai')) + ) { handleNewTab(config, wallet) return }