From 40ee2b85c6f2cd51c9349c8a14707d025ca40031 Mon Sep 17 00:00:00 2001 From: martincai8 Date: Tue, 15 Oct 2024 22:47:49 -0700 Subject: [PATCH] don't redirect to closed page when user is on the main application dashboard page --- src/utility/HackerApplicationContext.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/HackerApplicationContext.jsx b/src/utility/HackerApplicationContext.jsx index bdf058f9..ad9883ca 100644 --- a/src/utility/HackerApplicationContext.jsx +++ b/src/utility/HackerApplicationContext.jsx @@ -211,7 +211,7 @@ export function HackerApplicationProvider({ children }) { return null } - if (!applicationOpen && window.location.pathname !== '/application') { + if (!applicationOpen && !window.location.pathname.endsWith('/application')) { return }