Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Commit

Permalink
🐛 Fix for encoding errors in releasePokemon() (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoschmitt authored and cyraxx committed Jan 7, 2017
1 parent 6180dd3 commit 2d8d78f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pogobuf/pogobuf.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ function Client(options) {
return self.callOrChain({
type: RequestType.RELEASE_POKEMON,
message: new RequestMessages.ReleasePokemonMessage({
pokemon_id: pokemonIDs.length === 1 ? pokemonIDs[0] : null,
pokemon_ids: pokemonIDs.length > 1 ? pokemonIDs : null
pokemon_id: pokemonIDs.length === 1 ? pokemonIDs[0] : undefined,
pokemon_ids: pokemonIDs.length > 1 ? pokemonIDs : undefined
}),
responseType: Responses.ReleasePokemonResponse
});
Expand Down

0 comments on commit 2d8d78f

Please sign in to comment.