Skip to content

Commit

Permalink
fix: enable ap staking submission logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rumzledz committed Nov 6, 2024
1 parent a2f3dc6 commit 1019dfe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ const ActionButtons: FC<ActionButtonsProps> = ({
? 'button'
: primaryButton?.type ?? 'submit';

const handlePrimaryButtonClick = () => {
onSubmitClick?.();
primaryButton?.onClick?.();
};

return (
<div
className="mt-8 flex flex-col-reverse items-center
Expand Down Expand Up @@ -127,7 +132,7 @@ const ActionButtons: FC<ActionButtonsProps> = ({
isFullSize={isMobile}
type={primaryButtonType}
onClick={() =>
primaryButton?.type === 'button' && primaryButton?.onClick?.()
primaryButtonType === 'button' && handlePrimaryButtonClick()
}
/>
)}
Expand Down

0 comments on commit 1019dfe

Please sign in to comment.