Skip to content

Commit

Permalink
fix (frontend): The notifications card doesn't need to be shown, when…
Browse files Browse the repository at this point in the history
… there are no notifications.
  • Loading branch information
TijnvdK committed Oct 1, 2024
1 parent 9ddbaee commit 8118deb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ const Notifications: FC = (): ReactElement | null => {
return null;
}

// If there are no notifications, we don't want to render the card
if (
notifications.outperforming.length === 0 &&
notifications.closing.length === 0 &&
notifications.falling.length === 0 &&
notifications.effort.length === 0
) {
return null;
}

const styledNotifications = [
notifications.outperforming.length > 0 && (
<div key='outperforming'>
Expand Down
4 changes: 2 additions & 2 deletions charts/iguideme/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: iguideme
description: IguideME
type: application
version: 0.3.222
appVersion: "0.3.222"
version: 0.3.223
appVersion: "0.3.223"

0 comments on commit 8118deb

Please sign in to comment.