minor type fix.

This commit is contained in:
muzam1l
2023-03-17 16:59:12 +05:30
parent 52e4f219f7
commit 21a69ac8ea

View File

@@ -141,7 +141,7 @@ export const prepareTransaction = (data: any) => {
// amount.xrp // amount.xrp
if (_value.$type === 'amount.xrp') { if (_value.$type === 'amount.xrp') {
if (_value.$value) { if (_value.$value) {
options[field] = (+_value.$value * 1000000 + '') as any options[field] = (+(_value as any).$value * 1000000 + '')
} else { } else {
options[field] = undefined options[field] = undefined
} }