Skip to content

Commit

Permalink
fix(web): balance value error in cost center page (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored May 31, 2023
1 parent df478bf commit 87d482a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/billing/billing.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class BillingService {
.find(query)
.skip((page - 1) * pageSize)
.limit(pageSize)
.sort({ startTime: -1 })
.sort({ startAt: -1 })
.toArray()

const res = {
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/app/setting/Usage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Usage() {
<h1 className="mb-4 text-2xl font-bold">Usage</h1>
<HStack className="mt-4">
<span className=" text-grayModern-500">{t("Balance")}:</span>
<span>{accountRes?.data?.balance}</span>
<span>{(accountRes?.data?.balance ?? 0) / 100}</span>
<ChargeButton>
<span className="cursor-pointer text-blue-800">{t("ChargeNow")}</span>
</ChargeButton>
Expand Down

0 comments on commit 87d482a

Please sign in to comment.