Skip to content

Commit

Permalink
🚑️ Correct isAutoContext check on the resolving context
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Jan 30, 2025
1 parent 4308f03 commit 4dfb8a3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/wallet/app/module/listener/atoms/resolvingContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export const handleHandshakeResponse = atom(
>
>
);
if (currentContext?.sourceUrl !== context?.sourceUrl) {
if (
currentContext?.sourceUrl !== context?.sourceUrl ||
currentContext?.isAutoContext !== context?.isAutoContext
) {
set(iframeResolvingContextAtom, context);
}

Expand Down Expand Up @@ -123,9 +126,9 @@ function getIFrameResolvingContext(
sourceUrl,
origin,
productId,
isAutoContext: event !== undefined,
isAutoContext: event === undefined,
});

// Return the context
return { productId, origin, sourceUrl, isAutoContext: event !== undefined };
return { productId, origin, sourceUrl, isAutoContext: event === undefined };
}

0 comments on commit 4dfb8a3

Please sign in to comment.