Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Merge branch 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangtaofeng committed Apr 25, 2024
2 parents 76fe4a5 + ee0886a commit 99aa964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ const CreditCard: FC = () => {
openCreditDrawer,
} = useContext(BillingContext)

const creditNum =
(creditInfo?.quantity ?? 0) * CREDIT_UNIT_BY_CYCLE[creditInfo?.cycle] * 1000

return (
<section css={licenseCardContainerStyle} id="license">
<span css={infoTitleStyle}>{t("billing.menu.overview")}</span>
Expand Down Expand Up @@ -128,7 +125,7 @@ const CreditCard: FC = () => {
{t("tipi_billing.subscribed_credits")}
</span>
<span css={cardPayDetailNumStyle}>
{toThousands(creditNum || 0)}
{toThousands(creditInfo.volumeConverted || 0)}
</span>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages

0 comments on commit 99aa964

Please sign in to comment.