Skip to content

Commit

Permalink
Update dependency array to fix confirmation modal bug (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellemaxwell authored Mar 6, 2024
1 parent ac69e46 commit fd0367d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/gds-user-ui/src/components/ReviewSubmit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const ReviewSubmit: React.FC<ReviewSubmitProps> = ({
onOpen();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isSent]);
// List props in the dependency array to ensure the correct values are used.
}, [isTestNetSent, isMainNetSent]);

// Update the review step status to complete if the user submits a registration.
if (isTestNetSubmitted || isMainNetSubmitted) {
Expand Down

0 comments on commit fd0367d

Please sign in to comment.