Fix: Client Redirect

This commit is contained in:
Br0wnHammer committed 2026-02-21 00:12:17 +05:30
1 parent f9653888b1
commit e25669ac6a
1 file changed
+1 -4
+1 -4
View File
@@ -61,10 +61,7 @@ export const initApiClient = (store: StoreType): void => {
}
if (error.response?.status === 401) {
if (
window.location.pathname !== "/login" &&
!window.location.pathname.startsWith("/status/public")
) {
if (window.location.pathname !== "/login") {
window.location.href = "/login";
}
}