Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
fix close modal
Browse files Browse the repository at this point in the history
  • Loading branch information
alantoa committed Nov 8, 2023
1 parent d9938a4 commit 83b6dc3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/design-system/modal-screen/with-modal-screen.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ function withModalScreen<P extends object>(
if (!isLayouted.current) return;
if (router.asPath === "/login" || router.asPath === "/") {
router.push("/");
} else if (
router.pathname === "/creator-token/[username]/buy" ||
router.pathname === "/creator-token/[username]/invite-sign-in"
) {
router.push(`/@${router.query.username}`);
} else {
router.pop();
}
Expand Down

0 comments on commit 83b6dc3

Please sign in to comment.