diff --git a/AuthentesApp/src/app/modalsGame/modalsGame.page.ts b/AuthentesApp/src/app/modalsGame/modalsGame.page.ts index 0ff50cd..2322fc0 100644 --- a/AuthentesApp/src/app/modalsGame/modalsGame.page.ts +++ b/AuthentesApp/src/app/modalsGame/modalsGame.page.ts @@ -77,7 +77,6 @@ export class ModalsGamePage { break; case "Values": const status = await this.game.initValuesGame(); - console.log(`/${game.toLowerCase()}${status}`); this.router.navigateByUrl(`/${game.toLowerCase()}${status}`); return; } diff --git a/AuthentesApp/src/app/services/game.service.ts b/AuthentesApp/src/app/services/game.service.ts index a508cdd..b88361e 100644 --- a/AuthentesApp/src/app/services/game.service.ts +++ b/AuthentesApp/src/app/services/game.service.ts @@ -31,8 +31,9 @@ export class GameService { await this.storage.remove(`${game.toUpperCase()}GAME_TOKEN`); } - public async saveGameStorage(game: string, status: string, type: string, value: any){ - await this.storage.set(`${game.toUpperCase()}GAME_TOKEN`, { status: status, type: value}); + public async saveGameStorage(game: string, status: string, sort: string, value: any){ + // TODO LOOK AT THIS + await this.storage.set(`${game.toUpperCase()}GAME_TOKEN`, { status: status, cards: value}); } // finish when backend is completed @@ -56,7 +57,6 @@ export class GameService { const token = await this.storage.get("VALUESGAME_TOKEN"); // console.log(this.cardset["cards"]); this.cardset = token["cards"]; - return token["status"]; } } \ No newline at end of file