cleanup code

This commit is contained in:
ilya-bkv 2024-03-07 15:14:58 +03:00
parent 2280a776b3
commit 248d06decd
2 changed files with 0 additions and 3 deletions

View File

@ -48,7 +48,6 @@ export const RegisterForm = () => {
}
const handleSubmit = async (event: Event) => {
console.log('!!! handleSubmit:', handleSubmit)
event.preventDefault()
if (passwordError()) {
setValidationErrors((errors) => ({ ...errors, password: passwordError() }))

View File

@ -184,10 +184,8 @@ export const EditorProvider = (props: { children: JSX.Element }) => {
}
const saveDraft = async (draftForm: ShoutForm) => {
console.log("!!! draftForm:", draftForm);
const { error } = await updateShout(draftForm, { publish: false })
if (error) {
console.log("!!! error:", error);
snackbar?.showSnackbar({ type: 'error', body: localize?.t(error) || '' })
return
}