Qoder's API returns `remaining` as an absolute credit count (e.g. 348 out of 3000), but ProviderLimits' getRemainingPercentage and QuotaTable treat the `remaining` field as a 0-100 percentage. Result: "348%" with red status. Stop forwarding `remaining` from the qoder parser. The percentage is computed from used/total via calculatePercentage, which gives the correct ~12% remaining for the example case. |
||
|---|---|---|
| .. | ||
| index.js | ||
| ProviderLimitCard.js | ||
| QuotaProgressBar.js | ||
| QuotaTable.js | ||
| utils.js | ||