Skip to content

Commit

Permalink
fix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Nov 30, 2024
1 parent 6587370 commit 7b574fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/client/src/components/PromoteSubscriptionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export function PromoteSubscriptionButton({
...rest
}: PromoteSubscriptionButtonProps) {
return (
<Button color="primary" {...rest} onClick={showSubscriptionPromotion}>
<Button
color="primary"
{...rest}
onClick={() => showSubscriptionPromotion()}
>
{children}
</Button>
);
Expand Down

0 comments on commit 7b574fe

Please sign in to comment.