Skip to content

Commit

Permalink
fix: dismiss toast after uncheck use markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed Oct 31, 2024
1 parent f18bdb8 commit f0eefbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/form/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function Form() {
function handleUseMarkdown(event: React.ChangeEvent<HTMLInputElement>) {
setUseMarkdown(event.target.checked);
if (event.target.checked) toast(CustomToast);
else toast.dismiss();
}

// handle submit result
Expand Down

0 comments on commit f0eefbd

Please sign in to comment.