Merge pull request #43 from TNG-dev/hotfix-redirect

This commit is contained in:
zkldi
2021-12-01 00:11:51 +00:00
committed by GitHub
+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();
// }
}