addTask and updateTask crash silently on API error
File: client/src/context/BoardContext.jsx
addTask() and updateTask() have NO try/catch.
If the server is down or token expires, app crashes with
unhandled promise rejection.
Fix: wrap both in try/catch and return the error
so the UI can show a toast message.
addTask and updateTask crash silently on API error
File: client/src/context/BoardContext.jsx
addTask() and updateTask() have NO try/catch.
If the server is down or token expires, app crashes with
unhandled promise rejection.
Fix: wrap both in try/catch and return the error
so the UI can show a toast message.