From 88b523879761e992a7c631be58d7cf4f3451865c Mon Sep 17 00:00:00 2001 From: Javier Bueno Date: Fri, 8 Nov 2024 15:45:37 +0100 Subject: [PATCH] CR: udpate --- .../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 7d9627cbca..e88dfdd98e 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 = [parseMsg(JSON.parse(decodedMetadata)?.msg)] + const msg = [parseMsg(JSON.parse(decodedMetadata)?.msg ?? [])] metadata = {msg} }