Skip to content

Commit

Permalink
Merge pull request #647 from webitel/fix/settings-phone-error
Browse files Browse the repository at this point in the history
fix: hide notification about 404 error in settings [WTEL-4346]
  • Loading branch information
dlohvinov authored Apr 1, 2024
2 parents 8ad00b3 + 2e59ac1 commit 7547dc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/settings/api/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const getWebPhone = async () => {
snakeToCamel(),
]);
} catch (err) {
if (err.response.status === 404) return;
// phone settings doesn't exist on backend if user is new, and we have to hide notification about this error
// https://webitel.atlassian.net/browse/WTEL-4346
throw applyTransform(err, [
notify,
]);
Expand Down

0 comments on commit 7547dc7

Please sign in to comment.