From 80b020507ce11f657c5fd4e55f5208e7eb2e2de6 Mon Sep 17 00:00:00 2001 From: Muhsin Shah Date: Mon, 1 May 2023 21:11:16 +0530 Subject: [PATCH] fix --- frontend/src/App/App.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/App/App.jsx b/frontend/src/App/App.jsx index f0f9330e0d..f3e8aefee3 100644 --- a/frontend/src/App/App.jsx +++ b/frontend/src/App/App.jsx @@ -75,7 +75,9 @@ class AppComponent extends React.Component { 'confirm', 'confirm-invite', ]; - return existedPaths.find((path) => window.location.pathname.includes(path)); + + const pathnames = window.location.pathname.split('/')?.filter((path) => path != ''); + return pathnames?.length > 0 ? existedPaths.find((path) => pathnames[0] === path) : false; }; componentDidMount() {