fix(build)

This commit is contained in:
Steffen Jost 2023-11-21 18:49:33 +01:00
parent 83bab6b86b
commit 5163ed06c6

View File

@ -785,7 +785,7 @@ postFirmUsersR fsh = do
, formSubmit = FormSubmit
, formAnchor = Just addFormAnchor
}
formResult fucrRes $ \FirmUserChangeRequest{..} -> when (isJust fucrPostalAddr || isJust fucrPostalAddr) $ do
formResult fucrRes $ \FirmUserChangeRequest{..} -> when (isJust fucrPostalPref || isJust fucrPostalAddr) $ do
let changes = foldMap (\pp -> [UserPrefersPostal E.=. E.val pp]) fucrPostalPref <>
foldMap (\pa -> [UserPostAddress E.=. E.justVal pa]) fucrPostalAddr -- seems weird, but: Nothing means no change, and not delete address!
nrChanged <- runDB $ E.updateCount $ \usr -> do