Skip to content

Commit

Permalink
fix: pre-mature validation on basic step
Browse files Browse the repository at this point in the history
  • Loading branch information
gparlakov committed Sep 21, 2024
1 parent c088257 commit 14cb2cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default function CampaignApplicationBasic() {
setFieldValue(
'applicationBasic.campaignEndDate',
values?.applicationBasic?.campaignEnd === CampaignEndTypes.DATE ? selectedDate : undefined,
false,
)
}, [values?.applicationBasic?.campaignEnd])

Expand Down
4 changes: 2 additions & 2 deletions src/service/campaign-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export function mapExistingOrNew(
cause: existing?.goal ?? '',
currentStatus: existing?.history ?? '',
description: existing?.description ?? '',
organizerBeneficiaryRelationship: existing?.organizerBeneficiaryRel,
organizerBeneficiaryRelationship: existing?.organizerBeneficiaryRel ?? '',
},
admin: {
archived: existing?.archived ?? false,
Expand All @@ -291,7 +291,7 @@ export function mapCreateOrEditInput(i: CampaignApplicationFormData): CampaignAp
amount: i.applicationBasic.funds?.toString() ?? '',
goal: i.applicationDetails.cause,
description: i.applicationDetails.description,
organizerBeneficiaryRel: i.applicationDetails.organizerBeneficiaryRelationship,
organizerBeneficiaryRel: i.applicationDetails.organizerBeneficiaryRelationship ?? '-',
history: i.applicationDetails.currentStatus,
campaignEnd: i.applicationBasic.campaignEnd,
campaignEndDate: i.applicationBasic.campaignEndDate,
Expand Down

0 comments on commit 14cb2cc

Please sign in to comment.