From 93245014a1afc1a0042fdc26395e6bbb6f01023d Mon Sep 17 00:00:00 2001 From: Kevin Szuchet <31735779+kevinszuchet@users.noreply.github.com> Date: Thu, 5 Sep 2024 20:05:05 +0100 Subject: [PATCH] fix: Use the keys of the map as the CURRENT_AVAILABLE_NOTIFICATIONS (#561) --- 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,