fix: Electron build problems

This commit is contained in:
LukeGus
2025-11-02 23:11:04 -06:00
parent 5dae1feca8
commit 2239a7f54a
9 changed files with 70 additions and 9 deletions

View File

@@ -345,7 +345,15 @@ function createApiInstance(
toast.warning("Session expired. Please log in again.");
});
setTimeout(() => window.location.reload(), 1000);
const currentPath = window.location.pathname;
const isOnAuthPage =
currentPath === "/" ||
currentPath === "/login" ||
currentPath === "/auth";
if (!isOnAuthPage) {
setTimeout(() => window.location.reload(), 1000);
}
}
}