Skip to content

Commit

Permalink
fix - Incorrect Default Form Display When Editing Account Type (bcgov…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio authored Jun 21, 2024
1 parent 7ea951f commit 45a5de5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.6.34",
"version": "2.6.35",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
6 changes: 3 additions & 3 deletions auth-web/src/components/auth/common/AccountBusinessType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
</template>

<script lang="ts">
import { Account, AccountType, OrgNameLabel, SessionStorageKeys } from '@/util/constants'
import { AccessType, Account, AccountType, OrgNameLabel, SessionStorageKeys } from '@/util/constants'
import { computed, defineComponent, nextTick, onMounted, reactive, toRefs, watch } from '@vue/composition-api'
import ConfigHelper from '@/util/config-helper'
import { OrgBusinessType } from '@/models/Organization'
Expand Down Expand Up @@ -376,8 +376,8 @@ export default defineComponent({
if (currentOrganization.value?.name) {
state.name = currentOrganization.value.name
state.isBusinessAccount = currentOrganization.value.isBusinessAccount
state.isIndividualAccount = false
state.isGovnAccount = !currentOrganization.value.isBusinessAccount
state.isGovnAccount = currentOrganization.value?.accessType === AccessType.GOVN
state.isIndividualAccount = !state.isBusinessAccount && !state.isGovnAccount
state.businessType = currentOrganization.value.businessType
state.businessSize = currentOrganization.value.businessSize
state.branchName = currentOrganization.value.branchName
Expand Down

0 comments on commit 45a5de5

Please sign in to comment.