diff --git a/src/dashboard/example/components/ScoreboardPanel.vue b/src/dashboard/example/components/ScoreboardPanel.vue index ffe0b1e..8672870 100644 --- a/src/dashboard/example/components/ScoreboardPanel.vue +++ b/src/dashboard/example/components/ScoreboardPanel.vue @@ -8,6 +8,9 @@ import { useScoreboardStore } from '../stores/scoreboard'; const playersStore = usePlayersStore(); const scoreboardStore = useScoreboardStore(); +const CUSTOM_LEFT_PLAYER_ID = '__custom_left_player__'; +const CUSTOM_RIGHT_PLAYER_ID = '__custom_right_player__'; + const leftFilter = ref(''); const rightFilter = ref(''); const leftInput = ref(''); @@ -137,13 +140,13 @@ const rightPlayerOptions = computed(() => filterOptions(playerOptions.value, rig const startLeftCustomPlayer = () => { - scoreboardStore.scoreboard.leftPlayerId = ''; + scoreboardStore.scoreboard.leftPlayerId = CUSTOM_LEFT_PLAYER_ID; scoreboardStore.scoreboard.leftTeamOverride = ''; scoreboardStore.scoreboard.leftCountryOverride = ''; }; const startRightCustomPlayer = () => { - scoreboardStore.scoreboard.rightPlayerId = ''; + scoreboardStore.scoreboard.rightPlayerId = CUSTOM_RIGHT_PLAYER_ID; scoreboardStore.scoreboard.rightTeamOverride = ''; scoreboardStore.scoreboard.rightCountryOverride = ''; };