refacto: rename alias to reference

This commit is contained in:
Julien Calixte
2025-08-09 11:37:21 +02:00
parent 839eec1acd
commit 0db7ec94af
4 changed files with 17 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ export const useBoardGameStore = defineStore('board-game', {
initGame() {
this.tools = tools.map((t) => ({
...t,
alias: randomAlias()
reference: randomAlias()
}))
this.boardGames = firstDemands
this.currentBoardGameIndex = 0
@@ -61,7 +61,7 @@ export const useBoardGameStore = defineStore('board-game', {
return
}
const tool = this.tools.find((t) => t.alias === alias)
const tool = this.tools.find((t) => t.reference === alias)
if (!tool) {
return