Skip to content

Commit

Permalink
remove browser wallet check
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus committed Sep 2, 2024
1 parent d310efc commit edbe3d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/sdk/src/execute/execute.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ export const checkCallbackUrl = (
wallet: Wallet,
outcomes: void | FinalExecutionOutcome[],
): void | FinalExecutionOutcome[] | FinalExecutionOutcome => {
const isNotBrowserWallet = wallet?.type !== 'browser';
const hasCallbackUrl = Boolean(
typeof window !== 'undefined' && callbackUrl?.length > 0,
);

if (hasCallbackUrl && isNotBrowserWallet) {
if (hasCallbackUrl) {
const { transactionHash } = checkTransactionHash(outcomes);

let finalUrl = `${callbackUrl}?transactionHashes=${transactionHash}`;
Expand Down

0 comments on commit edbe3d3

Please sign in to comment.