myriadeinc / web

0 stars 2 forks source link

Fixed bug when retrieving MCs #107

Closed BasileF closed 3 years ago

BasileF commented 3 years ago

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