From 573873fd0ea08ee28b0e68d811566aa8218d92ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=BChl?= Date: Mon, 26 May 2025 15:44:29 +0200 Subject: [PATCH] changed type of user parameter --- app/src/store/player.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/store/player.ts b/app/src/store/player.ts index 326d917..e3b5ff5 100644 --- a/app/src/store/player.ts +++ b/app/src/store/player.ts @@ -1,6 +1,6 @@ import playerService from '@/services/PlayerService' import Player from "@/types/Player"; -import UserInfo from "@/types/UserInfo"; +import User from "@/types/User"; import {ActionContext, Module} from 'vuex'; import { RootState } from './index'; @@ -15,7 +15,7 @@ const pitchTypes: Module = { namespaced: true, state: {player: null}, actions: { - determinePlayer({commit}: PlayerActionContext, user: UserInfo) { + determinePlayer({commit}: PlayerActionContext, user: User) { if (user.roles.includes('ROLE_PLAYER')) { playerService.fetchByUserId(user.id).then(player => { commit('initialize', player);