Skip to content

Commit

Permalink
feature: Create matching menu
Browse files Browse the repository at this point in the history
Correct usage of method

Refs: 8696pcz16
Signed-off-by: Patryk Kłosiński <[email protected]>
  • Loading branch information
JimTheCat committed Jan 4, 2025
1 parent f70bb32 commit 6613c36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/Features/CreatePost/CreatePost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ export const CreatePost = () => {
const contentToSave = contentRef.current;
console.log('Create post: ', contentToSave);
if (!contentToSave) {
alert.showError('Post is empty!');
alert.showError({
title: 'Error',
message: 'Content is empty',
level: 'WARNING',
timestamp: new Date().toISOString()
});
return;
}

Expand Down

0 comments on commit 6613c36

Please sign in to comment.