Skip to content

Commit

Permalink
chore(web): fix bouns display (#2014)
Browse files Browse the repository at this point in the history
* fix(web): adjust transparency of the overlay for application startup logs

* chore(web): Optimize log display logic

* chore(web): fix bouns display

---------

Co-authored-by: HUAHUAI23 <lim@outlook.com>
Co-authored-by: GH Action - Upstream Sync <action@github.com>
  • Loading branch information
3 people committed Jun 25, 2024
1 parent 022c5b5 commit 6311eb8
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 6311eb8

Please sign in to comment.