Skip to content

Commit

Permalink
TC-907
Browse files Browse the repository at this point in the history
  • Loading branch information
fw-noel committed Jan 18, 2025
1 parent d38add9 commit 3a0d61d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions frontend/src/components/recommitment/RecommitmentFormBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,6 @@ export const RecommitmentFormBase = ({
onUpdate={setUnableToJoinReasons}
key="unable"
/>,
<Assertions
program={Program.ALL}
onUpdate={setAssertionsChecked}
key="assertions"
/>,
];
default:
return [
Expand Down Expand Up @@ -345,7 +340,10 @@ export const RecommitmentFormBase = ({
}
}

if (currentComponentType === Assertions) {
if (
currentComponentType === Assertions ||
currentComponentType === UnableToJoin && recommitmentAnswer === 'no'
) {
setButtonLoading(true);
handleSubmitRecommitment();
}
Expand Down Expand Up @@ -460,7 +458,10 @@ export const RecommitmentFormBase = ({

const getButtonText = () => {
const currentComponentType = currentComponent.type;
if (currentComponentType === Assertions) {
if (
currentComponentType === Assertions ||
currentComponentType === UnableToJoin && recommitmentAnswer === 'no'
) {
return 'Submit Decision';
}
if (currentComponentType === ParQBase && currentParQStep === 3) {
Expand Down

0 comments on commit 3a0d61d

Please sign in to comment.