Skip to content

Commit

Permalink
fix: cannot update waitlist status to open (#1171)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski authored Apr 25, 2022
1 parent 3dc54a5 commit 4e553fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const UnitsSummaryForm = ({
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore:next-line
unitType: summary?.unitType?.map((elem) => elem.id ?? elem.toString()),
openWaitListQuestion: summary?.openWaitlist?.toString(),
openWaitListQuestion: summary?.openWaitListQuestion || summary?.openWaitlist?.toString(),
})
}, [summaries, reset, currentTempId, setCurrent])

Expand Down
1 change: 1 addition & 0 deletions sites/partners/src/listings/PaperListingForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ const ListingForm = ({ listing, editMode }: ListingFormProps) => {
...summary,
tempId: i + 1,
amiLevels: summary?.amiLevels?.map((elem, index) => ({ ...elem, tempId: index + 1 })),
openWaitListQuestion: summary?.openWaitlist?.toString(),
}))
setUnitsSummaries(tempSummaries)
}
Expand Down

0 comments on commit 4e553fe

Please sign in to comment.