From e0bdf747d0dbfc5d7e6a75643fb582083f88513b Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Mon, 30 Jan 2023 09:56:36 +0300 Subject: [PATCH] Web: Notifications: Fixed asynchronous method. --- .../client/src/pages/Notifications/Section/Body/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/Notifications/Section/Body/index.js b/packages/client/src/pages/Notifications/Section/Body/index.js index cf9180e4e3..5b21d98465 100644 --- a/packages/client/src/pages/Notifications/Section/Body/index.js +++ b/packages/client/src/pages/Notifications/Section/Body/index.js @@ -37,7 +37,10 @@ const SectionBodyContent = ({ t, setSubscriptions }) => { getNotificationSubscription(NotificationsType.DailyFeed), getNotificationSubscription(NotificationsType.UsefulTips), ]; - const [badges, roomsActivity, dailyFeed, tips] = Promise.all(requests); + const [badges, roomsActivity, dailyFeed, tips] = await Promise.all( + requests + ); + setSubscriptions( badges.isEnabled, roomsActivity.isEnabled,