Skip to content

Commit

Permalink
fix: set lastScreen as flowName for card
Browse files Browse the repository at this point in the history
  • Loading branch information
sarneijim committed Sep 8, 2024
1 parent 7ea10fe commit a74f230
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ export const TopBar = ({ manifest, webviewAPIRef, webviewState }: Props) => {
if (goToURL) {
localStorage.setItem("manifest-id", manifestId);
localStorage.setItem("flow-name", url.searchParams.get("flowName") || "buy");
localStorage.setItem("last-screen", url.searchParams.get("lastScreen") || "");
localStorage.setItem(
"last-screen",
url.searchParams.get("lastScreen") || url.searchParams.get("flowName") || "",
);

history.replace(`${match.url}/${manifestId}?goToURL=${goToURL}`);
}
Expand Down

0 comments on commit a74f230

Please sign in to comment.