From 64e78329ec4650300d49d12641880f43a8226e98 Mon Sep 17 00:00:00 2001 From: Ma Yuke Date: Mon, 17 Apr 2023 11:51:51 +0800 Subject: [PATCH] Update app/requests.ts fix: displaying the number of subscription beyond two decimal places. --- app/requests.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/requests.ts b/app/requests.ts index db91f6fc..af718f23 100644 --- a/app/requests.ts +++ b/app/requests.ts @@ -113,6 +113,10 @@ export async function requestUsage() { if (response.total_usage) { response.total_usage = Math.round(response.total_usage) / 100; } + + if (total.hard_limit_usd) { + total.hard_limit_usd = Math.round(total.hard_limit_usd * 100) / 100; + } return { used: response.total_usage,