Skip to content

Commit

Permalink
fix: back bar navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jan 7, 2024
1 parent a10d49d commit ddf1849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/Backbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ export function Backbar() {
return (
<div className="navbar bg-base-100">
<div className="flex-none">
<button className="btn btn-ghost m-1" onClick={() => navigate(-1)}>
<button
className="btn btn-ghost m-1"
onClick={() => navigate("../new")}
>
<PopiconsArrowLeftDuotone className="w-6 h-6" />
</button>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/pages/wallet/Pay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export function Pay() {
}, [invoice, navigate, provider]);

if (!invoice) {
navigate(-1);
return null;
}

Expand Down

0 comments on commit ddf1849

Please sign in to comment.