Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eve-git committed Nov 8, 2024
1 parent 6ad588c commit c5b9949
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/examine/recipe/match/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
<div v-else-if="conflictData">
<ExamineRecipeMatchNames
v-if="conflict.source === 'NR' || conflict.source === 'NRO'"
v-if="conflict.source === 'NR' || conflict.source === 'NRO' || conflict.source === 'NAMEREQUEST'"
:conflict="(conflictData as NameRequest)"
/>
<ExamineRecipeMatchBCCorp
Expand Down
7 changes: 6 additions & 1 deletion app/store/examine/conflict-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ import {
type Corporation,
type NameRequest,
} from '~/types'
import { getCorporation, getNameRequest } from '~/util/namex-api'
import { getBusiness, getCorporation, getNameRequest } from '~/util/namex-api'

export const useConflictData = defineStore('conflict-data', () => {
async function getCorpConflict(corpNum: string): Promise<Corporation> {
// search for businsess in BCRS
const businessResponse = await getBusiness(corpNum)
if (businessResponse.ok) return businessResponse.json()

// search for business in COLIN
const response = await getCorporation(corpNum)
return response.json()
}
Expand Down

0 comments on commit c5b9949

Please sign in to comment.