Skip to content

Commit

Permalink
wallet-ext: fix navigating to home when route doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pchrysochoidis committed Aug 16, 2022
1 parent e5caa8a commit 5745610
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions wallet/src/ui/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ const App = () => {
return (
<Routes>
<Route path="/*" element={<HomePage />}>
<Route
index
element={<Navigate to="/tokens" replace={true} />}
/>
<Route path="tokens" element={<TokensPage />} />
<Route path="nfts" element={<NftsPage />} />
<Route path="nft-details" element={<NFTDetailsPage />} />
Expand All @@ -63,6 +59,10 @@ const App = () => {
element={<TransactionDetailsPage />}
/>
<Route path="receipt" element={<ReceiptPage />} />
<Route
path="*"
element={<Navigate to="/tokens" replace={true} />}
/>
</Route>
<Route path="welcome" element={<WelcomePage />} />
<Route path="/initialize" element={<InitializePage />}>
Expand All @@ -73,10 +73,6 @@ const App = () => {
</Route>
<Route path="/connect/:requestID" element={<SiteConnectPage />} />
<Route path="/tx-approval/:txID" element={<DappTxApprovalPage />} />
<Route
path="*"
element={<Navigate to="/tokens" replace={true} />}
/>
</Routes>
);
};
Expand Down

0 comments on commit 5745610

Please sign in to comment.