From 38691d4fcc0bcbe581bf98f269508a57a011759b Mon Sep 17 00:00:00 2001 From: Nikita Yutanov Date: Fri, 30 Aug 2024 17:57:25 +0300 Subject: [PATCH] fix(idea/frontend): sails message to program error payload decoding (#1634) --- idea/frontend/src/features/message/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/frontend/src/features/message/utils.ts b/idea/frontend/src/features/message/utils.ts index 39ec493e5b..bc40d5edbf 100644 --- a/idea/frontend/src/features/message/utils.ts +++ b/idea/frontend/src/features/message/utils.ts @@ -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);