minor bug fixes

This commit is contained in:
sairaj mote 2021-10-25 21:05:36 +05:30
parent b87b94d5ad
commit 2628e3230d

View File

@ -1206,19 +1206,20 @@
const quantity = parseFloat(getRef('get_user_amount').value) const quantity = parseFloat(getRef('get_user_amount').value)
try { try {
showProcess('wallet_popup__cta_wrapper') showProcess('wallet_popup__cta_wrapper')
const proxySecret = await proxy.secret
if (type === 'deposit') { if (type === 'deposit') {
const privKey = getRef('get_private_key').value; const privKey = getRef('get_private_key').value;
if (asset === 'FLO') { if (asset === 'FLO') {
await depositFLO(quantity, userID, privKey, await proxy.secret) await depositFLO(quantity, userID, privKey, proxySecret)
} else { } else {
await depositRupee(quantity, userID, privKey, await proxy.secret) await depositRupee(quantity, userID, privKey, proxySecret)
} }
showWalletResult('success', `Sent ${asset} deposit request`, 'This may take upto 30 mins to reflect in your wallet.') showWalletResult('success', `Sent ${asset} deposit request`, 'This may take upto 30 mins to reflect in your wallet.')
} else { } else {
if (asset === 'FLO') { if (asset === 'FLO') {
await withdrawFLO(quantity, proxy.secret) await withdrawFLO(quantity, proxySecret)
} else { } else {
await withdrawRupee(quantity, proxy.secret) await withdrawRupee(quantity, proxySecret)
} }
showWalletResult('success', `Sent ${asset} withdraw request`, 'This may take upto 30 mins to reflect in your wallet.') showWalletResult('success', `Sent ${asset} withdraw request`, 'This may take upto 30 mins to reflect in your wallet.')
} }