Do not send notification on HTTP401

This commit is contained in:
Maks Snegov 2024-05-02 13:16:12 -07:00
parent 18c8b2112c
commit 7331c266f4

View File

@ -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();