Skip to content

Commit

Permalink
code review fix and version update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio committed May 23, 2024
1 parent c96e75f commit fdbb35d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 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.13",
"version": "2.6.14",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
13 changes: 8 additions & 5 deletions auth-web/src/components/auth/common/AccountBusinessType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ import { computed, defineComponent, nextTick, onMounted, reactive, toRefs, watch
import ConfigHelper from '@/util/config-helper'
import { OrgBusinessType } from '@/models/Organization'
import OrgNameAutoComplete from '@/views/auth/OrgNameAutoComplete.vue'
import { storeToRefs } from 'pinia'
import { useCodesStore } from '@/stores/codes'
import { useOrgStore } from '@/stores/org'
Expand Down Expand Up @@ -229,9 +230,12 @@ export default defineComponent({
const codesStore = useCodesStore()
const orgStore = useOrgStore()
const {
businessSizeCodes,
businessTypeCodes
} = storeToRefs(codesStore)
const currentOrganization = computed(() => orgStore.currentOrganization)
const businessSizeCodes = computed(() => codesStore.businessSizeCodes)
const businessTypeCodes = computed(() => codesStore.businessTypeCodes)
const isCurrentGovnOrg = currentOrganization.value?.accessType === AccessType.GOVN
const state = reactive({
Expand All @@ -246,7 +250,7 @@ export default defineComponent({
businessSize: '',
governmentSize: '',
branchName: '',
isIndividualAccount: false,
isIndividualAccount: true,
isGovnAccount: false,
orgNameRules: [],
orgBusinessTypeRules: [],
Expand Down Expand Up @@ -339,7 +343,7 @@ export default defineComponent({
await codesStore.getGovernmentTypeCodes()
await codesStore.getBusinessSizeCodes()
await codesStore.getBusinessTypeCodes()
if (currentOrganization.value.name) {
if (currentOrganization.value?.name) {
state.name = currentOrganization.value.name
state.isBusinessAccount = currentOrganization.value.isBusinessAccount
state.businessType = currentOrganization.value.businessType
Expand Down Expand Up @@ -392,7 +396,6 @@ export default defineComponent({
return {
...toRefs(state),
name,
getOrgNameLabel,
setAutoCompleteSearchValue,
onOrgNameChange,
Expand Down

0 comments on commit fdbb35d

Please sign in to comment.