diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-27 16:29:39 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-27 16:29:39 +0800 |
commit | 47a58b40cd4ba764c9823448687307bb4a80c697 (patch) | |
tree | 8fb22006e8e447f7bfda3173ea219c8a699295fa /ethereal/assets | |
parent | 474c85bc9d4b8ef88c933cf0fb9d58bf913f6cbe (diff) | |
download | dexon-47a58b40cd4ba764c9823448687307bb4a80c697.tar dexon-47a58b40cd4ba764c9823448687307bb4a80c697.tar.gz dexon-47a58b40cd4ba764c9823448687307bb4a80c697.tar.bz2 dexon-47a58b40cd4ba764c9823448687307bb4a80c697.tar.lz dexon-47a58b40cd4ba764c9823448687307bb4a80c697.tar.xz dexon-47a58b40cd4ba764c9823448687307bb4a80c697.tar.zst dexon-47a58b40cd4ba764c9823448687307bb4a80c697.zip |
Removed recursive function for loop
Diffstat (limited to 'ethereal/assets')
-rw-r--r-- | ethereal/assets/qml/wallet.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml index f318ad173..b467982c4 100644 --- a/ethereal/assets/qml/wallet.qml +++ b/ethereal/assets/qml/wallet.qml @@ -643,12 +643,12 @@ ApplicationWindow { } function addBlock(block) { - var objtt = JSON.parse(block.transactions); + var txs = JSON.parse(block.transactions); var amount = 0 - if(objtt != null){ - amount = objtt.length + if(txs != null){ + amount = txs.length } - blockModel.insert(0, {number: block.number, hash: block.hash, txs: objtt, txAmount: amount, time: block.time, prettyTime: convertToPretty(block.time)}) + blockModel.insert(0, {number: block.number, hash: block.hash, txs: txs, txAmount: amount, time: block.time, prettyTime: convertToPretty(block.time)}) } function addLog(str) { |