Skip to content

Commit fd174ab

Browse files
committed
Fixed alert not showing up on format error
1 parent cf3cea7 commit fd174ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

peerprep/components/questionpage/CollabEditor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export default function CollabEditor({
113113
}
114114
} catch (e: unknown) {
115115
if (e instanceof Error) {
116+
alert(e.message);
116117
console.error(e.message);
117118
} else {
118119
console.error("An unknown error occurred");

0 commit comments

Comments
 (0)