From ddf7c49f0eda052b61a4614f9d709ee25eb9d6b8 Mon Sep 17 00:00:00 2001 From: Kevin Szuchet Date: Thu, 5 Sep 2024 19:01:46 +0100 Subject: [PATCH] fix: Use the keys of the map as the CURRENT_AVAILABLE_NOTIFICATIONS --- src/components/Notifications/utils.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Notifications/utils.tsx b/src/components/Notifications/utils.tsx index d8f38f2d..ba1cd894 100644 --- a/src/components/Notifications/utils.tsx +++ b/src/components/Notifications/utils.tsx @@ -111,7 +111,9 @@ export const NotificationComponentByType: DecentralandNotificationComponentByTyp WorldsPermissionRevokedNotification } -export const CURRENT_AVAILABLE_NOTIFICATIONS = Object.values(NotificationType) +export const CURRENT_AVAILABLE_NOTIFICATIONS = Object.keys( + NotificationComponentByType +) export const replaceWithValues = ( str: string,