Skip to content

Commit 6fb18fc

Browse files
committed
Address overly-specific error handling for what's meant to be a more general error function
1 parent e8391da commit 6fb18fc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/ui/coaching-sessions/coaching-notes.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,7 @@ const handleEditorContentError = (error: unknown) => {
328328
console.error("Editor content error:", error);
329329

330330
// Show user-friendly error message via toast
331-
if (error instanceof TypeError && error.message.includes("Expected table token")) {
332-
toast.error("Unable to paste table. The table format may be invalid.");
333-
} else {
334-
toast.error("An error occurred while editing. Please try again.");
335-
}
331+
toast.error("An error occurred while editing. Please try again.");
336332
};
337333

338334
export { CoachingNotes };

0 commit comments

Comments
 (0)