Do not send notification on HTTP401
This commit is contained in:
1 parent
18c8b2112c
commit
7331c266f4
1 file changed
+1
-1
+1
-1
@@ -244,7 +244,7 @@ async function getAvailableDates(consulateId) {
|
||||
|
||||
if (!response.ok) {
|
||||
if (response.status === 401) {
|
||||
await sendNotification('Logged out due to 401 error');
|
||||
console.log('Logged out due to 401 error');
|
||||
await logOut();
|
||||
}
|
||||
const body = await response.text();
|
||||
|
||||
Reference in new issue
Block a user