Skip to content

Commit

Permalink
Fixes logical error with showReviewPage
Browse files Browse the repository at this point in the history
  • Loading branch information
thiessenp-cds committed Jul 31, 2024
1 parent 7c60fc1 commit ec45d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/form-builder/showReviewPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { formHasGroups } from "./formHasGroups";

export function showReviewPage(form: FormProperties) {
if (!formHasGroups(form)) return false;
return Array.isArray(form.groupsLayout) && form.groupsLayout.length > 1;
return Array.isArray(form.groupsLayout) && form.groupsLayout.length > 0;
}

0 comments on commit ec45d67

Please sign in to comment.