private fun displayCompanyInfoErrors(inputErrors: InputErrors, signInProcessing: Boolean = false) { _uiState.value = uiState.value.copy( companyName = uiState.value.companyName.copy( errorId = inputErrors.companyNameErrorId ), addressFields = uiState.value.addressFields.copy( address1 = uiState.value.addressFields.address1.copy( errorId = inputErrors.address1 ), address2 = uiState.value.addressFields.address2.copy( errorId = inputErrors.address2 ), address3 = uiState.value.addressFields.address3.copy( errorId = inputErrors.address3 ), city = uiState.value.addressFields.city.copy( errorId = inputErrors.city ), zipcode = uiState.value.addressFields.zipcode.copy( errorId = inputErrors.zipCode ), selectedState = uiState.value.addressFields.selectedState.copy( errorId = inputErrors.state ), selectedCountry = uiState.value.addressFields.selectedCountry.copy( errorId = inputErrors.country ) ), signInProcessing = signInProcessing ) }
Displaying errors on the fields in the CompanyInfo screen