From c1d9a4e73018854191c8d4e1c4f7eb52cd020c4b Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 9 Apr 2023 22:14:10 +0530 Subject: [PATCH] Bug fix --- index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.html b/index.html index 5b5a6f1..608a40d 100644 --- a/index.html +++ b/index.html @@ -1705,10 +1705,9 @@ const floData = getRef('flo_data_textarea').value.trim(); const selectedToken = document.getElementById('sender_tokens_wrapper').querySelector('input[type="radio"]:checked') const tokenAmount = parseFloat(getRef('tx_token_amount').value.trim()) - const tokenName = selectedToken.value getConfirmation(`Confirm transaction`, { 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', }).then(res => {