diff --git a/client/src/components/Dashboard.jsx b/client/src/components/Dashboard.jsx index 52cf975..f9909ea 100644 --- a/client/src/components/Dashboard.jsx +++ b/client/src/components/Dashboard.jsx @@ -31,7 +31,7 @@ export default function Dashboard() { // Prevent navigation while in Edit mode without saving or cancelling const handleViewChange = (nextView) => { - if (view === "widget" && isEditable) { + if (view === "mydashboard" && isEditable) { const confirmed = window.confirm( "You have unsaved changes. Discard them and continue?" );