feat: enhance API error handling and improve alert message formatting

This commit is contained in:
SaelixCode
2026-02-27 12:22:10 -05:00
parent 91cafb49f9
commit f4700ebfc9
3 changed files with 39 additions and 3 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ export default function EditorLayout() {
const fetchNotifications = async () => {
try {
const res = await apiFetch('/notifications/history');
const res = await apiFetch('/notifications');
if (res.ok) {
const data = await res.json();
setNotifications(data);