clean code
[arvados.git] / src / views-components / side-panel-button / side-panel-button.tsx
index 80b3163f8f2e93e16888d11a1e0fa03ad14c729f..f0543b4ca471d3a2cbb25f857758ee7fc4e3b62f 100644 (file)
@@ -51,7 +51,7 @@ const transformOrigin: PopoverOrigin = {
 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)(