From 2e59ac167e12222df7523f7370532e98b2f589fc Mon Sep 17 00:00:00 2001 From: lizacoma Date: Mon, 1 Apr 2024 20:35:09 +0300 Subject: [PATCH] fix: hide notification about 404 error in settings [WTEL-4346] --- src/modules/settings/api/settings.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/settings/api/settings.js b/src/modules/settings/api/settings.js index a9c2100d6..e2c69a92d 100644 --- a/src/modules/settings/api/settings.js +++ b/src/modules/settings/api/settings.js @@ -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, ]);