diff --git a/frontend/src/components/Toast.tsx b/frontend/src/components/Toast.tsx index 16fb68c..8cdff1f 100644 --- a/frontend/src/components/Toast.tsx +++ b/frontend/src/components/Toast.tsx @@ -68,7 +68,11 @@ export function Toast({ id, type, message, duration = 5000, onClose }: ToastProp return (
diff --git a/frontend/src/components/ToastContext.tsx b/frontend/src/components/ToastContext.tsx index c956e73..d6227dc 100644 --- a/frontend/src/components/ToastContext.tsx +++ b/frontend/src/components/ToastContext.tsx @@ -59,7 +59,7 @@ function ToastContainer({ toasts }: ToastContainerProps) { } return ( -
{settingsData?.user?.username}
+{settingsData?.data.user.username || "N/A"}