0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Fix error messages crashing page

This commit is contained in:
Trevor Buckner
2024-10-09 14:35:16 -04:00
parent 269dd6107c
commit e873dcf3a8
2 changed files with 7 additions and 7 deletions

View File

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