From 12a1c66dc228e6c689700ca7003f5aee70c80c91 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Mon, 21 Aug 2023 07:45:25 -0230 Subject: [PATCH] Use primary transaction to get token value in useTransactionDisplayData (#20536) Co-authored-by: Jyoti Puri --- ui/hooks/useTransactionDisplayData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/hooks/useTransactionDisplayData.js b/ui/hooks/useTransactionDisplayData.js index 8d5f7bc3d..6ce9b11c5 100644 --- a/ui/hooks/useTransactionDisplayData.js +++ b/ui/hooks/useTransactionDisplayData.js @@ -198,7 +198,7 @@ export function useTransactionDisplayData(transactionGroup) { ); const tokenDisplayValue = useTokenDisplayValue( - initialTransaction?.txParams?.data, + primaryTransaction?.txParams?.data, token, isTokenCategory, );