From 1c1aca16a650bee3916ea4c6b11d7cefb50c0e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9?= Date: Tue, 21 Feb 2023 10:42:59 -0400 Subject: [PATCH] refactor: :lipstick: fix linter problems --- src/components/chart-js-facade/chart-js-facade.vue | 14 +------------- src/stores/pokemon-list.store.ts | 2 +- src/views/HomePage.vue | 2 +- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/components/chart-js-facade/chart-js-facade.vue b/src/components/chart-js-facade/chart-js-facade.vue index e4cff29..22505fa 100644 --- a/src/components/chart-js-facade/chart-js-facade.vue +++ b/src/components/chart-js-facade/chart-js-facade.vue @@ -5,8 +5,7 @@ \ No newline at end of file diff --git a/src/stores/pokemon-list.store.ts b/src/stores/pokemon-list.store.ts index db635ec..c55cb5f 100644 --- a/src/stores/pokemon-list.store.ts +++ b/src/stores/pokemon-list.store.ts @@ -24,7 +24,7 @@ export const usePokemonListStore = defineStore("pokemon-list", { async fetchAndUpdatePokemons(paginatorInfo: PaginatorDataSource) { const { limit, offset } = paginatorInfo; this.loading = true; - const pokemonsResponse = await this.$pokemonService.getAll(limit!, offset!) + const pokemonsResponse = await this.$pokemonService.getAll(limit ?? 0, offset ?? 0) if (pokemonsResponse.succeeded) { handleSuccessfullyPokemonListRequest(pokemonsResponse.result, paginatorInfo) } else { diff --git a/src/views/HomePage.vue b/src/views/HomePage.vue index 7054510..3037c8c 100644 --- a/src/views/HomePage.vue +++ b/src/views/HomePage.vue @@ -24,7 +24,7 @@