Просмотр исходного кода

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

Owen Diffey 2 лет назад
Родитель
Сommit
75573f0bbd
1 измененных файлов с 1 добавлено и 1 удалено
  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)