Skip to content

Commit

Permalink
Update client/src/components/ActivityBar/ActivityBar.vue
Browse files Browse the repository at this point in the history
Remove redundant checks
  • Loading branch information
itisAliRH authored Nov 15, 2024
1 parent 4dfff35 commit 90b57da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/components/ActivityBar/ActivityBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ const isSideBarOpen = computed(() => activityStore.toggledSideBar !== "");
*/
function panelActivityIsActive(activity: Activity) {
return (
isActiveSideBar(activity.id) ||
(activity.to !== undefined && activity.to !== null && isActiveRoute(activity.to))
isActiveSideBar(activity.id) || isActiveRoute(activity.to)
);
}
Expand Down

0 comments on commit 90b57da

Please sign in to comment.