]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: fix getter name in vuex example (#1321)
authorLeonid <leonidkoida@gmail.com>
Fri, 27 May 2022 05:05:38 +0000 (08:05 +0300)
committerGitHub <noreply@github.com>
Fri, 27 May 2022 05:05:38 +0000 (07:05 +0200)
Corrected the getter name for full name in example of usage vuex inside the componets

packages/docs/cookbook/migration-vuex.md

index 9aad5bb75896fe5d326d0ffd6565add2e961d657..d55d4909627c8d300bbce24bc8a4cf4e597e1a7f 100644 (file)
@@ -208,7 +208,7 @@ export default defineComponent({
     const store = useStore()
 
     const firstName = computed(() => store.state.auth.user.firstName)
-    const fullName = computed(() => store.getters['auth/user/firstName'])
+    const fullName = computed(() => store.getters['auth/user/fullName'])
 
     return {
       firstName,