Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit 6c48cbd

Browse files
committed
Fix phone error
1 parent e9b988a commit 6c48cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/checkout/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class CheckoutPage extends Component {
369369
firstname: this.state['customer[first_name]'],
370370
lastname: this.state['customer[last_name]'],
371371
email: this.state['customer[email]'],
372-
phone: this.state['customer[phone]']
372+
phone: this.state['customer[phone]'] || undefined
373373
},
374374
// collected 'order notes' data for extra field configured in the Chec Dashboard
375375
extrafields: {

0 commit comments

Comments
 (0)