Skip to content

Commit

Permalink
Added disabled button on load to stop multiple clicks causing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaV93 committed Sep 24, 2024
1 parent 1164a30 commit fbdac5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/NewMemeberPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export default function NewMemberPage() {
variant="contained"
onClick={activeStep === steps.length - 1 ? handleFormSubmit : handleNext}
type="button"
// disabled={isLoading}
disabled={isLoading}
sx={{ mt: 3, ml: 1 }}>
{activeStep === steps.length - 1 ? 'Submit Details' : 'Next'}
</Button>
Expand Down

0 comments on commit fbdac5a

Please sign in to comment.