Skip to content

Commit

Permalink
add validation to isPlanningDataCollected bool
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Jun 24, 2024
1 parent 096db8a commit 41805bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export default function HomepagePlanningForm({ formikConfig }: FormProps) {
Do you collect Planning data?
<RadioGroup
name="isPlanningDataCollected"
defaultValue={"Yes"}
defaultValue={
formik.values.isPlanningDataCollected === true ? "yes" : "no"
}
onChange={(event) => {
formik.setFieldValue(
"isPlanningDataCollected",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const GeneralSettings: React.FC = () => {
helpPhone: "",
helpOpeningHours: "",
homepage: "",
isPlanningDataCollected: false,
isPlanningDataCollected: true,
portalName: "",
portalUrl: "",
};
Expand Down

0 comments on commit 41805bc

Please sign in to comment.