Skip to content

Commit

Permalink
feat: ✨ add expert contact path for police and gendarmerie
Browse files Browse the repository at this point in the history
  • Loading branch information
nutfdt committed Jan 9, 2024
1 parent a8e5a9c commit 93fa920
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { resultTree } from '@/utils/firearms-utils/index'
import { DsfrButton } from '@gouvminint/vue-dsfr'
const resultStore = useResultStore()
const router = useRouter()
const typology = computed(() => resultStore.typology)
Expand All @@ -15,6 +16,8 @@ const keyWords = ['Mobile', 'Mozilla', 'Crosscall']
const foundAllKeyWords = keyWords.every(keyWord => {
return userAgent.includes(keyWord)
})
const bypassCrosscall = true
</script>

<template>
Expand All @@ -40,7 +43,10 @@ const foundAllKeyWords = keyWords.every(keyWord => {
class="img-deco"
>
</div>
<div v-if="foundAllKeyWords">
<div
v-if="foundAllKeyWords ||
bypassCrosscall"
>
<ContactExpert />
</div>
</div>
Expand Down

0 comments on commit 93fa920

Please sign in to comment.