Make redirects work

This commit is contained in:
zkldi
2021-12-01 00:10:40 +00:00
parent 678ecf67df
commit abdb03dfc0
+5 -5
View File
@@ -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();
// }
}