Skip to content

Commit

Permalink
Add notification id to useMemo deps
Browse files Browse the repository at this point in the history
  • Loading branch information
davecreaser committed Nov 28, 2024
1 parent 9ec95d8 commit 729e56b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const ActionNotification: FC<NotificationProps> = ({
}

return formatText({ id: 'action.title' }, titleValues, notification.id);
}, [action, colony, titleValues]);
}, [action, colony, titleValues, notification.id]);

const actionTitle =
action?.metadata?.customTitle || action?.decisionData?.title || '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const ExpenditureNotification: FC<NotificationProps> = ({
actionTitleValues,
notification.id,
);
}, [action, actionTitleValues, colony]);
}, [action, actionTitleValues, colony, notification.id]);

return (
<NotificationWrapper
Expand Down

0 comments on commit 729e56b

Please sign in to comment.