Fix console error on create page

This commit is contained in:
James Grugett 2022-08-27 01:14:24 -05:00
parent a9ea335cd1
commit 51ceb62871

View File

@ -210,7 +210,9 @@ export function NewContract(props: {
max: MAX_DESCRIPTION_LENGTH,
placeholder: descriptionPlaceholder,
disabled: isSubmitting,
defaultValue: JSON.parse(params?.description ?? '{}'),
defaultValue: params?.description
? JSON.parse(params.description)
: undefined,
})
const isEditorFilled = editor != null && !editor.isEmpty