Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Kumar <[email protected]>
  • Loading branch information
abhinavkrin committed Aug 23, 2024
1 parent 500d2a1 commit bbf5a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/api/server/v1/emoji-custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ API.v1.addRoute(
fields.previousExtension = emojiToUpdate.extension;
fields.aliases = fields.aliases || '';

const newFile = !!fileBuffer?.length;
const newFile = !!fileBuffer && fileBuffer.length > 0;

if (newFile) {
const isUploadable = await Media.isImage(fileBuffer);
Expand Down

0 comments on commit bbf5a74

Please sign in to comment.