Skip to content

Commit

Permalink
bt-771: - remove notification in getLmsData
Browse files Browse the repository at this point in the history
  • Loading branch information
likeri29 committed Sep 30, 2023
1 parent dd5ed97 commit 1a2f5af
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions mobile/src/bundles/common-data/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

0 comments on commit 1a2f5af

Please sign in to comment.