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 @@