From a1e00c59fd0ad70a08ef51ae8a6b771bd000536f Mon Sep 17 00:00:00 2001 From: Javier Bueno Date: Fri, 8 Nov 2024 12:10:38 +0100 Subject: [PATCH] refactor(wallet-metadata): new tx review metadata --- .../src/features/ReviewTx/common/hooks/useFormattedMetadata.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wallet-mobile/src/features/ReviewTx/common/hooks/useFormattedMetadata.tsx b/apps/wallet-mobile/src/features/ReviewTx/common/hooks/useFormattedMetadata.tsx index 8d62685f95..8f7aeabc91 100644 --- a/apps/wallet-mobile/src/features/ReviewTx/common/hooks/useFormattedMetadata.tsx +++ b/apps/wallet-mobile/src/features/ReviewTx/common/hooks/useFormattedMetadata.tsx @@ -29,7 +29,7 @@ export const formatMetadata = async ( const metadata674 = await generalTransactionMetadata?.get(await csl.BigNum.fromStr('674')) if (metadata674) { const decodedMetadata = await csl.decodeMetadatumToJsonStr(metadata674, MetadataJsonSchema.BasicConversions) - const msg = JSON.parse(decodedMetadata)?.msg ?? JSON.stringify({}) + const msg = JSON.parse(decodedMetadata)?.msg ?? '' metadata = {msg} }