Merge pull request #47 from jeanmatthieud/fix-checkout-phone-field

[FIX] Bug when phone number field is cleared during checkout
This commit is contained in:
Anthony Gordon 2022-09-23 08:54:17 +08:00 committed by GitHub
commit f94a3e2fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,7 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
_txtBillingAddressLine.text = addressLine!;
_txtBillingCity.text = city!;
_txtBillingPostalCode.text = postalCode!;
_txtBillingPhoneNumber.text = phoneNumber!;
_txtBillingPhoneNumber.text = phoneNumber ?? "";
_txtBillingEmailAddress.text = emailAddress!;
_billingCountry = customerCountry;
} else if (type == "shipping") {