Skip to content

Commit f94a3e2

Browse files
authored
Merge pull request #47 from jeanmatthieud/fix-checkout-phone-field
[FIX] Bug when phone number field is cleared during checkout
2 parents b1847ff + 5608484 commit f94a3e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LabelStoreMax/lib/resources/pages/checkout_details.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
150150
_txtBillingAddressLine.text = addressLine!;
151151
_txtBillingCity.text = city!;
152152
_txtBillingPostalCode.text = postalCode!;
153-
_txtBillingPhoneNumber.text = phoneNumber!;
153+
_txtBillingPhoneNumber.text = phoneNumber ?? "";
154154
_txtBillingEmailAddress.text = emailAddress!;
155155
_billingCountry = customerCountry;
156156
} else if (type == "shipping") {

0 commit comments

Comments
 (0)