Skip to content

Commit

Permalink
Fix message payload decoding (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov authored Apr 18, 2023
1 parent fdad4fb commit 384cbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idea/frontend/src/entities/message/helpers/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const getDecodedMessagePayload = (meta: ProgramMetadata, message: IMessage) => {
break;
}

return type ? meta.createType(type, payload) : payload;
return type !== undefined && type !== null ? meta.createType(type, payload) : payload;
};

export { getDecodedMessagePayload };

0 comments on commit 384cbe9

Please sign in to comment.