Skip to content

Commit

Permalink
fix mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Mate Karolyi committed Jul 30, 2023
1 parent b0791bc commit 2e61571
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public CustomerModel to(final CustomerModel model) {
model.setPostalCode(domain.address().postalCode().value());
model.setCity(domain.address().city());
model.setStreetAddress(domain.address().streetAddress());
model.setEmailAddress(model.getEmailAddress());
model.setEmailAddress(domain.emailAddress().value());

return model;

Expand Down

0 comments on commit 2e61571

Please sign in to comment.