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