From ca8f012d58496c1ffc480251ed0922ca7d8fe508 Mon Sep 17 00:00:00 2001 From: Claire Dagan Date: Thu, 12 Oct 2023 12:17:15 +0200 Subject: [PATCH] [Mission] fix remove tab --- frontend/src/features/missions/MissionsNavBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/features/missions/MissionsNavBar.tsx b/frontend/src/features/missions/MissionsNavBar.tsx index f9a0f6b31..6babaf0fe 100644 --- a/frontend/src/features/missions/MissionsNavBar.tsx +++ b/frontend/src/features/missions/MissionsNavBar.tsx @@ -60,7 +60,7 @@ export function MissionsNavBar() { } const removeTab = nextPath => { - if (nextPath) { + if (!nextPath) { return } dispatch(deleteTab(nextPath))