This commit is contained in:
Muhsin Shah 2023-05-01 21:11:16 +05:30
parent 466cdc4dc5
commit 80b020507c

View file

@ -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() {