Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/currybag'
Browse files Browse the repository at this point in the history
  • Loading branch information
pozylon committed May 7, 2020
2 parents c580a5b + 1006eac commit 0926878
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/core-orders/db/orders/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,10 +648,12 @@ Orders.createOrder = async ({
contact:
contact ||
user.lastContact ||
(!user.isGuest() && {
telNumber: user.telNumber(),
emailAddress: user.primaryEmail()?.address,
}),
(!user.isGuest()
? {
telNumber: user.telNumber(),
emailAddress: user.primaryEmail()?.address,
}
: {}),
userId: user._id,
currency,
countryCode,
Expand Down

0 comments on commit 0926878

Please sign in to comment.