Do not send notification on HTTP401

This commit is contained in:
snegov committed 2024-05-02 13:16:12 -07:00
1 parent 18c8b2112c
commit 7331c266f4
1 file changed
+1 -1
+1 -1
View File
@@ -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();