Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
mnigh committed Jan 10, 2025
1 parent d901089 commit 28bdffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Well } from "@gc-digital-talent/ui";

import ToggleForm from "~/components/ToggleForm/ToggleForm";
import employeeProfileMessages from "~/messages/employeeProfileMessages";
import { hasOneEmptyField } from "~/validators/employeeProfile/goalsWorkStyle";
import { hasAnyEmptyFields } from "~/validators/employeeProfile/goalsWorkStyle";

interface DisplayProps {
employeeProfile: EmployeeProfileGoalsWorkStyleFragment;
Expand All @@ -25,7 +25,7 @@ const Display = ({
data-h2-flex-direction="base(column)"
data-h2-gap="base(x1)"
>
{hasOneEmptyField({
{hasAnyEmptyFields({
aboutYou,
careerGoals,
learningGoals,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/validators/employeeProfile/goalsWorkStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function hasAllEmptyFields({
return !aboutYou && !careerGoals && !learningGoals && !workStyle;
}

export function hasOneEmptyField({
export function hasAnyEmptyFields({
aboutYou,
careerGoals,
learningGoals,
Expand Down

0 comments on commit 28bdffe

Please sign in to comment.