# Function updateMilitaryViewModel

- updateMilitaryViewModel(key, value, verificationService, availableStatuses): ActiveMilitaryPersonalInfoViewModel | InactiveMilitaryPersonalInfoViewModel

- #### Parameters

  - key: "organization" | "birthDate" | "postalCode" | "address1" | "city" | "country" | "state" | "dischargeDate" | "activeDutyStartDate" | "status" | (keyof WithCoreFields) | (keyof WithLocaleChoiceAndCountryChoice) | "fieldsToSkipValidation"
  - value: any
  - verificationService: VerificationService<ViewModel>
  - availableStatuses: FormSelectChoice[]

  #### Returns ActiveMilitaryPersonalInfoViewModel | InactiveMilitaryPersonalInfoViewModel

  - Defined in src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts:27