Closed 0knxwledge closed 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.
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.