const checkButtonVisibility = ({ router }: RootState) => {
const pathname = router.location ? router.location.pathname : '';
const match = matchProjectRoute(pathname);
- return match ? true : false;
+ return !!match;
};
export const SidePanelButton = withStyles(styles)(