Skip to content

Commit

Permalink
fix(billing): only show pricing options when available
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Nov 21, 2024
1 parent de8ee0a commit 6e31276
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const TopUpAmountPicker: FCWithChildren<TopUpAmountPickerProps> = ({ chil
const user = useUser();
const { data = [] } = useStripePricesQuery({ enabled: !!user?.userId });

return data.length ? (
return data.length > 1 ? (
<span className={cn({ "w-full": fullWidth }, "group relative")}>
<span className={cn({ "w-full": fullWidth }, "inline-flex content-center")}>
{children}
Expand Down

0 comments on commit 6e31276

Please sign in to comment.