From d43a31203a77d5cc8392772ab2b49533583f9a62 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Wed, 2 Apr 2025 15:59:10 +0200 Subject: [PATCH] fix vue logic error with missing .value on computed params --- frontend/src/components/Overview/CardUserSearch.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Overview/CardUserSearch.vue b/frontend/src/components/Overview/CardUserSearch.vue index bb83cd426..2632c123d 100644 --- a/frontend/src/components/Overview/CardUserSearch.vue +++ b/frontend/src/components/Overview/CardUserSearch.vue @@ -82,7 +82,7 @@ const { onResult, result, loading, onError } = useQuery(authenticateGmsUserSearc }) onResult(({ data }) => { - if (gmsAllowed && gmsUserLocationExists && data !== undefined) { + if (gmsAllowed.value && gmsUserLocationExists.value && data !== undefined) { gmsUri.value = `${data.authenticateGmsUserSearch.url}?accesstoken=${data.authenticateGmsUserSearch.token}` isUserSearchDisabled.value = false } @@ -90,9 +90,9 @@ onResult(({ data }) => { onError(() => { isUserSearchDisabled.value = true - if (gmsAllowed && gmsUserLocationExists) { + if (gmsAllowed.value && gmsUserLocationExists.value) { toastError('authenticateGmsUserSearch failed!') - } else if (gmsAllowed && !gmsUserLocationExists) { + } else if (gmsAllowed.value && !gmsUserLocationExists.value) { // toastError('capture your location first!') // eslint-disable-next-line no-console console.log('capture your location first...')