You are viewing a single comment's thread from:

RE: Write a Steemit Web App: Part 4 - Calculating Steem Power

in #steem-dev7 years ago

should be:
vm.$set(vm.userData, 'sp', totalSteemPower.toFixed(3))
vm.$set(vm.userData, 'vesting_shares', vestingShares.toFixed(3))

not
vm.$set(obj, 'sp', totalSteemPower.toFixed(3))
vm.$set(obj, 'vesting_shares', vestingShares.toFixed(3))

I think. It errors out with obj and works with vm.userData. Unless there is a reason not to use vm.userData

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 59698.94
ETH 2303.28
USDT 1.00
SBD 2.51