From 5a6e82fc0f2a5fae71fe533b9363d04d1404c5e7 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Tue, 17 May 2022 14:27:23 -0230 Subject: [PATCH] Ensure send logs use current chain currency symbol (#14726) --- ui/ducks/send/send.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/ducks/send/send.js b/ui/ducks/send/send.js index a812e34a1..54835178e 100644 --- a/ui/ducks/send/send.js +++ b/ui/ducks/send/send.js @@ -1466,6 +1466,7 @@ export function resetSendState() { export function updateSendAmount(amount) { return async (dispatch, getState) => { const state = getState(); + const { metamask } = state; let logAmount = amount; if (state[name].asset.type === ASSET_TYPES.TOKEN) { const multiplier = Math.pow( @@ -1489,7 +1490,7 @@ export function updateSendAmount(amount) { toCurrency: ETH, numberOfDecimals: 8, }); - logAmount = `${ethValue} ${ETH}`; + logAmount = `${ethValue} ${metamask?.provider?.ticker || ETH}`; } await dispatch( addHistoryEntry(`sendFlow - user set amount to ${logAmount}`),