fix default name capitalization
This commit is contained in:
parent
f87fbf37cf
commit
6c4cd2724e
@ -38,7 +38,11 @@ export const parseGameMaster = async () => {
|
|||||||
const pokemonData = pokemonDataByPokemonId.get(pokemonId) || [];
|
const pokemonData = pokemonDataByPokemonId.get(pokemonId) || [];
|
||||||
const dex = parseInt(RegExp.$1, 10);
|
const dex = parseInt(RegExp.$1, 10);
|
||||||
|
|
||||||
const speciesInfo = await apiService.getPokemonSpeciesInfo(pokemonId, dex, POGOProtos.Enums.PokemonId[pokemonId]);
|
const defaultName = POGOProtos.Enums.PokemonId[pokemonId].toLowerCase()
|
||||||
|
.split(' ')
|
||||||
|
.map((s) => s.charAt(0).toUpperCase() + s.substring(1))
|
||||||
|
.join(' ');
|
||||||
|
const speciesInfo = await apiService.getPokemonSpeciesInfo(pokemonId, dex, defaultName);
|
||||||
|
|
||||||
const mon = {
|
const mon = {
|
||||||
...speciesInfo,
|
...speciesInfo,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user