diff --git a/frontend/src/components/ResultPage.vue b/frontend/src/components/ResultPage.vue index 386809e9..1d50d895 100644 --- a/frontend/src/components/ResultPage.vue +++ b/frontend/src/components/ResultPage.vue @@ -3,6 +3,7 @@ import { ref, computed, watchEffect } from 'vue' import axios from 'axios' import SnackbarAlert from '@/components/SnackbarAlert.vue' import { resultTree } from '@/utils/firearms-utils/index' +import { isUserUsingCrosscall } from '@/utils/isUserUsingCrosscall' import { useSnackbarStore } from '@/stores/snackbar' import { useStepsStore } from '@/stores/steps' import { useResultStore } from '@/stores/result' @@ -122,6 +123,7 @@ function sendFeedback (isCorrect: boolean) {
Nous n'avons pas suffisamment d'éléments pour fournir une réponse fiable. Nous vous conseillons de faire appel à un expert.
+Nous vous conseillons de faire appel à un expert pour confirmer cette réponse.
+{ + return userAgent.includes(keyWord) + }) + return isUsingCrosscall +} diff --git a/frontend/src/views/GuideSecuringFirearm/SecuringAchievement.vue b/frontend/src/views/GuideSecuringFirearm/SecuringAchievement.vue index d90c7583..66c3e6a3 100644 --- a/frontend/src/views/GuideSecuringFirearm/SecuringAchievement.vue +++ b/frontend/src/views/GuideSecuringFirearm/SecuringAchievement.vue @@ -3,18 +3,12 @@ import { computed } from 'vue' import { useResultStore } from '@/stores/result' import { resultTree } from '@/utils/firearms-utils/index' +import { isUserUsingCrosscall } from '@/utils/isUserUsingCrosscall' import { DsfrButton } from '@gouvminint/vue-dsfr' const resultStore = useResultStore() const typology = computed(() => resultStore.typology) - -const userAgent = window.navigator.userAgent -const keyWords = ['Mobile', 'Mozilla', 'Crosscall'] - -const foundAllKeyWords = keyWords.every(keyWord => { - return userAgent.includes(keyWord) -}) @@ -40,9 +34,7 @@ const foundAllKeyWords = keyWords.every(keyWord => { class="img-deco" >