Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

24842 - bypass name request loading for completed bootstrap filing #109

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/composables/useBcrosAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ export const useBcrosAuth = () => {
keycloak.syncSessionStorage()
keycloak.scheduleRefreshToken()

// set user info
// NB. user name will be set automatically; calculated from the kcUser initialized in initKeyCloak function
// console.info('Setting user name...')
// await account.setUserName()

// set account info
console.info('Setting user account information...')
await account.setAccountInfo(Number(currentAccountId))
Expand Down
4 changes: 2 additions & 2 deletions src/stores/businessBootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const useBcrosBusinessBootstrap = defineStore('bcros/businessBootstrap',
const linkedNr: Ref<NameRequestI> = ref(undefined)

const bootstrapName = computed(() => {
if (bootstrapNrNumber.value) {
if (bootstrapNrNumber.value && (isBootstrapTodo.value || isBootstrapPending.value)) {
// get approved name from the linked name request
return linkedNr.value?.names.find(val => val.state === NameRequestStateE.APPROVED)?.name
} else if (bootstrapNr?.value?.legalName) {
Expand Down Expand Up @@ -214,7 +214,7 @@ export const useBcrosBusinessBootstrap = defineStore('bcros/businessBootstrap',
if (!bootsrapCached || force) {
isStoreLoading.value = true
bootstrapFiling.value = await getBootstrapFiling(identifier)
if (bootstrapNrNumber.value) {
if (bootstrapNrNumber.value && (isBootstrapPending.value || isBootstrapTodo.value)) {
await loadLinkedNameRequest(bootstrapNrNumber.value, force)
}
isStoreLoading.value = false
Expand Down