From 729e56b0dd49fb7587c90de2002ffd6c01038cbb Mon Sep 17 00:00:00 2001 From: Dave Creaser Date: Thu, 28 Nov 2024 11:47:33 +0000 Subject: [PATCH] Add notification id to useMemo deps --- .../partials/Notification/Action/ActionNotification.tsx | 2 +- .../Notification/Expenditure/ExpenditureNotification.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/Extensions/UserHub/partials/NotificationsTab/partials/Notification/Action/ActionNotification.tsx b/src/components/common/Extensions/UserHub/partials/NotificationsTab/partials/Notification/Action/ActionNotification.tsx index 8545c8130a..7890bca941 100644 --- a/src/components/common/Extensions/UserHub/partials/NotificationsTab/partials/Notification/Action/ActionNotification.tsx +++ b/src/components/common/Extensions/UserHub/partials/NotificationsTab/partials/Notification/Action/ActionNotification.tsx @@ -86,7 +86,7 @@ const ActionNotification: FC = ({ } return formatText({ id: 'action.title' }, titleValues, notification.id); - }, [action, colony, titleValues]); + }, [action, colony, titleValues, notification.id]); const actionTitle = action?.metadata?.customTitle || action?.decisionData?.title || ''; diff --git a/src/components/common/Extensions/UserHub/partials/NotificationsTab/partials/Notification/Expenditure/ExpenditureNotification.tsx b/src/components/common/Extensions/UserHub/partials/NotificationsTab/partials/Notification/Expenditure/ExpenditureNotification.tsx index 4574042e44..27e9c40fec 100644 --- a/src/components/common/Extensions/UserHub/partials/NotificationsTab/partials/Notification/Expenditure/ExpenditureNotification.tsx +++ b/src/components/common/Extensions/UserHub/partials/NotificationsTab/partials/Notification/Expenditure/ExpenditureNotification.tsx @@ -160,7 +160,7 @@ const ExpenditureNotification: FC = ({ actionTitleValues, notification.id, ); - }, [action, actionTitleValues, colony]); + }, [action, actionTitleValues, colony, notification.id]); return (