From 1a2f5af41ae5dc980e4539a837882b8c21165e41 Mon Sep 17 00:00:00 2001 From: likeri29 Date: Sat, 30 Sep 2023 11:39:07 +0200 Subject: [PATCH] bt-771: - remove notification in getLmsData --- mobile/src/bundles/common-data/store/actions.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/mobile/src/bundles/common-data/store/actions.ts b/mobile/src/bundles/common-data/store/actions.ts index 805d161ee..5ba79a346 100644 --- a/mobile/src/bundles/common-data/store/actions.ts +++ b/mobile/src/bundles/common-data/store/actions.ts @@ -53,14 +53,9 @@ const loadLMSData = createAsyncThunk< UserGetLMSDataById, AsyncThunkConfig >(`${sliceName}${ApiPath.USERS}/LMS`, async (userId, { extra }) => { - const { commonDataApi, notifications } = extra; - try { - return await commonDataApi.getDataFromLMS(userId); - } catch (error) { - const errorMessage = getErrorMessage(error); - notifications.showError({ title: errorMessage }); - throw error; - } + const { commonDataApi } = extra; + + return await commonDataApi.getDataFromLMS(userId); }); export { getBadgesData, getHardSkillsData, loadAllPartners, loadLMSData };