Skip to content

Commit

Permalink
fix: hide notification about 404 error in settings [WTEL-4346]
Browse files Browse the repository at this point in the history
  • Loading branch information
lizacoma committed Apr 1, 2024
1 parent ad661f9 commit 2e59ac1
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 2e59ac1

Please sign in to comment.