Explorar el Código

fix(SongItem): userRole mapped to auth.userRole not auth.role

Owen Diffey hace 2 años
padre
commit
75573f0bbd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      frontend/src/components/SongItem.vue

+ 1 - 1
frontend/src/components/SongItem.vue

@@ -40,7 +40,7 @@ const hoveredTippy = ref(false);
 const songActions = ref(null);
 
 const loggedIn = computed(() => store.state.user.auth.loggedIn);
-const userRole = computed(() => store.state.user.auth.userRole);
+const userRole = computed(() => store.state.user.auth.role);
 
 function formatRequestedAt() {
 	if (props.requestedBy && props.song.requestedAt)