mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
Merge pull request #11 from cypherstack/ui-testing
fix firo double-or-int parse bug
This commit is contained in:
commit
c40f7c0e90
1 changed files with 1 additions and 1 deletions
|
@ -3819,7 +3819,7 @@ class FiroWallet extends CoinServiceAPI {
|
||||||
|
|
||||||
var sendIndex = 1;
|
var sendIndex = 1;
|
||||||
if (tx["vout"][0]["value"] != null &&
|
if (tx["vout"][0]["value"] != null &&
|
||||||
tx["vout"][0]["value"] as int > 0) {
|
Decimal.parse(tx["vout"][0]["value"].toString()) > Decimal.zero) {
|
||||||
sendIndex = 0;
|
sendIndex = 0;
|
||||||
}
|
}
|
||||||
tx["amount"] = tx["vout"][sendIndex]["value"];
|
tx["amount"] = tx["vout"][sendIndex]["value"];
|
||||||
|
|
Loading…
Reference in a new issue