Skip to content

Commit

Permalink
fix(idea/frontend): sails message to program error payload decoding (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov authored Aug 30, 2024
1 parent d46609b commit 38691d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idea/frontend/src/features/message/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const getDecodedMessagePayload = (
const payload = getPayload(message);

try {
if (isMessageWithError(message)) return CreateType.create('String', payload).toHuman();
if (!isMessageQueued && isMessageWithError(message)) return CreateType.create('String', payload).toHuman();
if (metadata) return { value: getMetadataDecodedMessagePayload(message, isMessageQueued, metadata) };
if (sails) return getSailsDecodedMessagePayload(message, isMessageQueued, sails);

Expand Down

0 comments on commit 38691d4

Please sign in to comment.