Skip to content

Commit

Permalink
chore(web): fix bouns display
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Jun 20, 2024
1 parent 097ae63 commit 0947e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/ChargeButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function ChargeButton(props: { amount?: number; children: React.R
<div className="mb-5 grid grid-cols-3 gap-4">
{(bonus || []).map((item) => (
<div className="relative" key={item.amount}>
{item.reward && (
{item.reward !== 0 && (
<span className="absolute left-20 top-1 z-50 whitespace-nowrap rounded-full rounded-bl-none bg-purple-200 px-4 py-[1.5px] text-[12px] text-purple-600">
{t("application.bonus")} ¥{item.reward / 100}
</span>
Expand Down

0 comments on commit 0947e7f

Please sign in to comment.