Skip to content

Commit efbc630

Browse files
committed
Restored back navigation logic
1 parent f7cf164 commit efbc630

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/Toolbar/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ export default function Toolbar() {
3232
) : (
3333
<button
3434
onClick={() => {
35-
if (window.history.length > 2) {
36-
router.back();
37-
} else {
38-
router.push("/home");
39-
}
35+
router.back();
4036
}}
4137
>
4238
<ArrowLeft size={32} className="cursor-pointer" />

0 commit comments

Comments
 (0)