From 78dd34b6c1cbd7610d3378c5cee8a043b6928df7 Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Mon, 2 Sep 2024 17:32:24 +0100 Subject: [PATCH] fix callbackUrl for bitte wallet --- packages/sdk/src/execute/checkCallback.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/sdk/src/execute/checkCallback.ts b/packages/sdk/src/execute/checkCallback.ts index 0c839daa..d9a64435 100644 --- a/packages/sdk/src/execute/checkCallback.ts +++ b/packages/sdk/src/execute/checkCallback.ts @@ -20,10 +20,10 @@ export const callbackSideCheck = ( let callbackFinal = callbackUrl; if (currentEnv === 'client') { - const shouldGetFromMbjs = callbackUrl?.length < 1 || callbackUrl === undefined && - window?.['mbjs']?.callbackUrl && window?.['mbjs']?.callbackUrl.length > 0; + const shouldGetFromMbjs = callbackUrl?.length < 1 || callbackUrl === undefined && + window?.['mbjs']?.callbackUrl && window?.['mbjs']?.callbackUrl.length > 0; - if (wallet?.id == 'mintbase-wallet') { + if (wallet?.id == 'mintbase-wallet' || wallet?.id == 'bitte-wallet') { if (callbackUrl?.length < 1 || callbackUrl === undefined) { let mbjsCallbackUrl = '';