This commit is contained in:
sairaj mote 2023-04-09 22:14:10 +05:30
parent 326d6f8044
commit c1d9a4e730

View File

@ -1705,10 +1705,9 @@
const floData = getRef('flo_data_textarea').value.trim(); const floData = getRef('flo_data_textarea').value.trim();
const selectedToken = document.getElementById('sender_tokens_wrapper').querySelector('input[type="radio"]:checked') const selectedToken = document.getElementById('sender_tokens_wrapper').querySelector('input[type="radio"]:checked')
const tokenAmount = parseFloat(getRef('tx_token_amount').value.trim()) const tokenAmount = parseFloat(getRef('tx_token_amount').value.trim())
const tokenName = selectedToken.value
getConfirmation(`Confirm transaction`, { getConfirmation(`Confirm transaction`, {
message: ` message: `
Sending ${floAmount} FLO ${tokenName !== 'none' ? ` and ${tokenAmount} ${tokenName}` : ''} to ${receiver} Sending ${floAmount} FLO ${selectedToken && selectedToken.value !== 'none' ? ` and ${tokenAmount} ${selectedToken.value}` : ''} to ${receiver}
`, `,
confirmText: 'Send', confirmText: 'Send',
}).then(res => { }).then(res => {