Skip to content

addTask and updateTask crash silently on API error #14

Description

@anoopcodehack

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions