From 3b9ce1a23f78a6a1ece68393de532b8762f0dd78 Mon Sep 17 00:00:00 2001 From: Nathanael Gutierrez Date: Tue, 4 Jun 2024 11:52:45 -0400 Subject: [PATCH] Fixing typo in useUser composable getter (again) (#12235) --- kolibri/core/assets/src/composables/__mocks__/useUser.js | 2 +- kolibri/core/assets/src/composables/useUser.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kolibri/core/assets/src/composables/__mocks__/useUser.js b/kolibri/core/assets/src/composables/__mocks__/useUser.js index 937e24f2e1..f24c321c9b 100644 --- a/kolibri/core/assets/src/composables/__mocks__/useUser.js +++ b/kolibri/core/assets/src/composables/__mocks__/useUser.js @@ -58,7 +58,7 @@ const MOCK_DEFAULTS = { isFacilityCoach: false, isLearner: true, isFacilityAdmin: false, - userIsMultipleFacilityAdmin: false, + userIsMultiFacilityAdmin: false, getUserPermissions: {}, userFacilityId: undefined, getUserKind: UserKinds.ANONYMOUS, diff --git a/kolibri/core/assets/src/composables/useUser.js b/kolibri/core/assets/src/composables/useUser.js index d607c2c373..2f2e55bccb 100644 --- a/kolibri/core/assets/src/composables/useUser.js +++ b/kolibri/core/assets/src/composables/useUser.js @@ -15,7 +15,7 @@ export default function useUser() { const isFacilityCoach = computed(() => store.getters.isFacilityCoach); const isLearner = computed(() => store.getters.isLearner); const isFacilityAdmin = computed(() => store.getters.isFacilityAdmin); - const userIsMultipleFacilityAdmin = computed(() => store.getters.userIsMultipleFacilityAdmin); + const userIsMultiFacilityAdmin = computed(() => store.getters.userIsMultiFacilityAdmin); const getUserPermissions = computed(() => store.getters.getUserPermissions); const userFacilityId = computed(() => store.getters.userFacilityId); const getUserKind = computed(() => store.getters.getUserKind); @@ -46,7 +46,7 @@ export default function useUser() { isFacilityCoach, isLearner, isFacilityAdmin, - userIsMultipleFacilityAdmin, + userIsMultiFacilityAdmin, getUserPermissions, userFacilityId, getUserKind,