mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Ensure send logs use current chain currency symbol (#14726)
This commit is contained in:
parent
ca6835a86d
commit
944c22262f
@ -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}`),
|
||||
|
Loading…
Reference in New Issue
Block a user