SharedStake / SharedStake-ui

SharedStake User Interface using vue.js
https://www.sharedstake.org/
GNU General Public License v3.0
16 stars 16 forks source link

fix APY function to return resolved promise #50

Closed 0knxwledge closed 3 years ago

0knxwledge commented 3 years ago

Async functions return Promises instead of values. Updated getAPY() to resolve the Promise into a string before returning.

I tested locally and did not see [object promise] display anymore.