Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(web): fix bouns display #2014

Merged
merged 7 commits into from
Jun 25, 2024
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
Loading