There was a small bug when the MC credits endpoint in sapphire was updated to return a json object as opposed to the actual MC value. This would cause the page to crash. This is a fix for that bug.
Implementation / Approach
Switched response.data to response.data.credits - temp fix, may have to store the whole object that's returned if it will contain more info later on
Checklist
[ ] Appropriate Unit test coverage
[ ] Manual top-hatting has been performed
[ ] This PR is linted, tested and follows the best practices of the organization
Fixed bug when retrieving MCs
Description
There was a small bug when the MC credits endpoint in sapphire was updated to return a json object as opposed to the actual MC value. This would cause the page to crash. This is a fix for that bug.
Implementation / Approach
Switched response.data to response.data.credits - temp fix, may have to store the whole object that's returned if it will contain more info later on
Checklist