Skip to content

Commit

Permalink
bypass name request loading for completed bootstrap filing
Browse files Browse the repository at this point in the history
  • Loading branch information
Peinan Wang authored and Peinan Wang committed Dec 11, 2024
1 parent 3f86c9c commit 7502960
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7502960

Please sign in to comment.