From 3caec793d8b6ec91df0e4424a50006a3d58df403 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Wed, 18 Sep 2024 15:30:30 -0400 Subject: [PATCH] Linting --- .../notificationLookup/notificationLookup.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/admin/notificationUtils/notificationLookup/notificationLookup.jsx b/client/admin/notificationUtils/notificationLookup/notificationLookup.jsx index b9762149e..1186cce7a 100644 --- a/client/admin/notificationUtils/notificationLookup/notificationLookup.jsx +++ b/client/admin/notificationUtils/notificationLookup/notificationLookup.jsx @@ -43,9 +43,9 @@ const NotificationLookup = ()=>{ try { const res = await request.get('/admin/notification/all'); setNotifications(res.body || []); - } catch (error) { - console.log(error); - setError(`Error looking up notifications: ${error.response.body.message}`) + } catch (err) { + console.log(err); + setError(`Error looking up notifications: ${err.response.body.message}`) } finally { setSearching(false); } @@ -69,9 +69,9 @@ const NotificationLookup = ()=>{ setFoundNotification(null); } lookupAll(); - } catch (error) { - console.log(error); - setError(`Error deleting notification: ${error.response.body.message}`) + } catch (err) { + console.log(err); + setError(`Error deleting notification: ${err.response.body.message}`) }; }