mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 03:18:06 +03:00
Make redirects work
This commit is contained in:
@@ -191,9 +191,9 @@ export function Sleep(ms: number) {
|
||||
}
|
||||
|
||||
export function HistorySafeGoBack(history: ReturnType<typeof useHistory>) {
|
||||
if (history.length === 1) {
|
||||
history.replace("/");
|
||||
} else {
|
||||
history.goBack();
|
||||
}
|
||||
// if (history.length === 1) {
|
||||
history.replace("/");
|
||||
// } else {
|
||||
// history.goBack();
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user