Fix error messages crashing page

This commit is contained in:
Trevor Buckner committed 2024-10-09 14:35:16 -04:00
1 parent 269dd6107c
commit e873dcf3a8
2 files changed
+7 -7

No files matched your search

@@ -53,7 +53,7 @@ const NotificationAdd = ()=>{
setNotificationResult('Notification successfully created.');
setSearching(false);
} catch (err) {
console.log(error.response.body.message);
console.log(err.response.body.message);
setError(`Error saving notification: ${err.response.body.message}`);
setSearching(false);
}