Skip to content

Commit 22a03ff

Browse files
dannyphan2000syadupathi-sf
authored andcommitted
@W-19135066: add saved phone number (#2943)
Add saved phone number to the 1CC user registration flow.
1 parent 3e0ced9 commit 22a03ff

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/template-retail-react-app/app/pages/checkout-one-click/index.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ const CheckoutOneClick = () => {
148148
firstName: data.firstName,
149149
lastName: data.lastName,
150150
email: data.email,
151-
login: data.email
151+
login: data.email,
152+
phoneHome: data.phoneHome
152153
},
153154
password: generatePassword()
154155
}
@@ -199,7 +200,8 @@ const CheckoutOneClick = () => {
199200
await registerUser({
200201
firstName: order.billingAddress.firstName,
201202
lastName: order.billingAddress.lastName,
202-
email: order.customerInfo.email
203+
email: order.customerInfo.email,
204+
phoneHome: order.billingAddress.phone
203205
})
204206
}
205207

packages/template-retail-react-app/app/pages/checkout-one-click/index.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,8 @@ test('Can register account during checkout as a guest', async () => {
690690
firstName: 'John',
691691
lastName: 'Smith',
692692
693-
693+
694+
phoneHome: '(727) 555-1234'
694695
},
695696
password: expect.any(String)
696697
})

0 commit comments

Comments
 (0)