Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Apr 16, 2024
1 parent 45eb2a5 commit c472ea9
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,9 @@ function Component(props: Props) {
handleSubmit={() => {
// Handle validation (eventually formalise with yup schema?)
if (page === "os-address") {
if (showPostcodeError && !address) {
setShowAddressSelectError(true);
return;
} else if (!address) {
if (!address) {
setShowPostcodeError(true);
setShowAddressSelectError(true);
return;
} else if (!localAuthorityDistricts) {
setShowDataFetchingError(true);
Expand Down

0 comments on commit c472ea9

Please sign in to comment.