Skip to content

Commit 87d482a

Browse files
authored
fix(web): balance value error in cost center page (#1204)
1 parent df478bf commit 87d482a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/billing/billing.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class BillingService {
4848
.find(query)
4949
.skip((page - 1) * pageSize)
5050
.limit(pageSize)
51-
.sort({ startTime: -1 })
51+
.sort({ startAt: -1 })
5252
.toArray()
5353

5454
const res = {

web/src/pages/app/setting/Usage/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function Usage() {
3434
<h1 className="mb-4 text-2xl font-bold">Usage</h1>
3535
<HStack className="mt-4">
3636
<span className=" text-grayModern-500">{t("Balance")}:</span>
37-
<span>{accountRes?.data?.balance}</span>
37+
<span>{(accountRes?.data?.balance ?? 0) / 100}</span>
3838
<ChargeButton>
3939
<span className="cursor-pointer text-blue-800">{t("ChargeNow")}</span>
4040
</ChargeButton>

0 commit comments

Comments
 (0)