Fix missing country error
This commit is contained in:
1
main.ps1
1
main.ps1
@@ -227,7 +227,6 @@ $SubmitBtn.Add_Click({
|
|||||||
if (-not $city) { $missing += "City" }
|
if (-not $city) { $missing += "City" }
|
||||||
if (-not $province) { $missing += "Province" }
|
if (-not $province) { $missing += "Province" }
|
||||||
if (-not $postalCode) { $missing += "Postal Code" }
|
if (-not $postalCode) { $missing += "Postal Code" }
|
||||||
if (-not $country) { $missing += "Country" }
|
|
||||||
|
|
||||||
if ($missing.Count -gt 0) {
|
if ($missing.Count -gt 0) {
|
||||||
$msg = "Please fill in the following required fields:`n" + ($missing -join "`n")
|
$msg = "Please fill in the following required fields:`n" + ($missing -join "`n")
|
||||||
|
|||||||
Reference in New Issue
Block a user