Ensure send logs use current chain currency symbol (#14726)

feature/default_network_editable
Dan J Miller 3 years ago
parent 2668446e3b
commit 5a6e82fc0f
  1. 3
      ui/ducks/send/send.js

@ -1466,6 +1466,7 @@ export function resetSendState() {
export function updateSendAmount(amount) { export function updateSendAmount(amount) {
return async (dispatch, getState) => { return async (dispatch, getState) => {
const state = getState(); const state = getState();
const { metamask } = state;
let logAmount = amount; let logAmount = amount;
if (state[name].asset.type === ASSET_TYPES.TOKEN) { if (state[name].asset.type === ASSET_TYPES.TOKEN) {
const multiplier = Math.pow( const multiplier = Math.pow(
@ -1489,7 +1490,7 @@ export function updateSendAmount(amount) {
toCurrency: ETH, toCurrency: ETH,
numberOfDecimals: 8, numberOfDecimals: 8,
}); });
logAmount = `${ethValue} ${ETH}`; logAmount = `${ethValue} ${metamask?.provider?.ticker || ETH}`;
} }
await dispatch( await dispatch(
addHistoryEntry(`sendFlow - user set amount to ${logAmount}`), addHistoryEntry(`sendFlow - user set amount to ${logAmount}`),

Loading…
Cancel
Save