Skip to content

Commit

Permalink
chore: fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbira committed Aug 30, 2024
1 parent 4327edd commit de826dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/EditCompany.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const EditCompanyForm = ({ close, prevCompanyProfile }: { close: () => void; pre
<Card>
<MdEditor markdown={summary} editorRef={mdxEditorRef} onChange={setSummary} />
</Card>
<input type="hidden" readOnly name="summary" value={summary} />
<input type="hidden" readOnly name="summary" value={summary ?? ""} />
</label>

<FileInput name="banner" header="Banner" value={prevCompanyProfile.banner} />
Expand Down
2 changes: 1 addition & 1 deletion components/FileViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const FileViewer = ({ fileUrl, title, children }: { fileUrl: string; titl
setIsImage(blob.type.match(/^image\//))
})
}
}, [])
}, [fileUrl, isImage])

const close = () => setOpenState(false)
return (
Expand Down

0 comments on commit de826dc

Please sign in to comment.