Skip to content

Commit

Permalink
fix: useComposerAddAttachment return type (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Sep 8, 2024
1 parent ded8b64 commit dece2ec
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const useComposerAddAttachment = () => {
if (!file) return;
addAttachment({
id: generateId(),
type: "file", // TODO infer type from file extension or mimetype
name: file.name,
file,
});
};
Expand Down

0 comments on commit dece2ec

Please sign in to comment.