From 56084849917b7e4263c04443ca2d39a977d4ee9a Mon Sep 17 00:00:00 2001 From: Jean-Matthieu DECHRISTE Date: Tue, 6 Sep 2022 11:22:02 +0200 Subject: [PATCH] [FIX] Bug when phone number field is cleared during checkout --- LabelStoreMax/lib/resources/pages/checkout_details.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LabelStoreMax/lib/resources/pages/checkout_details.dart b/LabelStoreMax/lib/resources/pages/checkout_details.dart index 4157cdd..bcf7776 100644 --- a/LabelStoreMax/lib/resources/pages/checkout_details.dart +++ b/LabelStoreMax/lib/resources/pages/checkout_details.dart @@ -150,7 +150,7 @@ class _CheckoutDetailsPageState extends State { _txtBillingAddressLine.text = addressLine!; _txtBillingCity.text = city!; _txtBillingPostalCode.text = postalCode!; - _txtBillingPhoneNumber.text = phoneNumber!; + _txtBillingPhoneNumber.text = phoneNumber ?? ""; _txtBillingEmailAddress.text = emailAddress!; _billingCountry = customerCountry; } else if (type == "shipping") {