0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 02:02:43 +00:00
This commit is contained in:
Trevor Buckner
2024-09-18 15:30:30 -04:00
parent 9717f0cd66
commit 3caec793d8

View File

@@ -43,9 +43,9 @@ const NotificationLookup = ()=>{
try { try {
const res = await request.get('/admin/notification/all'); const res = await request.get('/admin/notification/all');
setNotifications(res.body || []); setNotifications(res.body || []);
} catch (error) { } catch (err) {
console.log(error); console.log(err);
setError(`Error looking up notifications: ${error.response.body.message}`) setError(`Error looking up notifications: ${err.response.body.message}`)
} finally { } finally {
setSearching(false); setSearching(false);
} }
@@ -69,9 +69,9 @@ const NotificationLookup = ()=>{
setFoundNotification(null); setFoundNotification(null);
} }
lookupAll(); lookupAll();
} catch (error) { } catch (err) {
console.log(error); console.log(err);
setError(`Error deleting notification: ${error.response.body.message}`) setError(`Error deleting notification: ${err.response.body.message}`)
}; };
} }