Skip to content

Commit 636eda5

Browse files
Merge pull request #62 from wayneboyles/master
Fixed issue with CompanyType in New-HuduCompany
2 parents 776eefa + 8e5bc46 commit 636eda5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HuduAPI/Public/New-HuduCompany.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function New-HuduCompany {
108108

109109
$Company.company.add('name', $Name)
110110
if (-not ([string]::IsNullOrEmpty($Nickname))) { $Company.company.add('nickname', $Nickname) }
111-
if (-not ([string]::IsNullOrEmpty($Nickname))) { $Company.company.add('company_type', $CompanyType) }
111+
if (-not ([string]::IsNullOrEmpty($CompanyType))) { $Company.company.add('company_type', $CompanyType) }
112112
if (-not ([string]::IsNullOrEmpty($AddressLine1))) { $Company.company.add('address_line_1', $AddressLine1) }
113113
if (-not ([string]::IsNullOrEmpty($AddressLine2))) { $Company.company.add('address_line_2', $AddressLine2) }
114114
if (-not ([string]::IsNullOrEmpty($City))) { $Company.company.add('city', $City) }

0 commit comments

Comments
 (0)