Skip to content

Commit

Permalink
chore(astro): fix typescript error in signout click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Jul 3, 2024
1 parent e87d635 commit b1f1b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/client/react/SignOutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const SignOutButton = withClerk(

const clickHandler = () => clerk?.signOut({ redirectUrl });
const wrappedChildClickHandler: React.MouseEventHandler = async e => {
await safeExecute(child.props.onClick)(e);
await safeExecute((child as any).props.onClick)(e);
return clickHandler();
};

Expand Down

0 comments on commit b1f1b2d

Please sign in to comment.