Skip to content

Commit

Permalink
remove hardcoded pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei committed Jul 19, 2020
1 parent bfee6e2 commit 2d7a08c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/screens/Pokemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import HEADER_PATTERN from '../assets/single-header-bg.png';
import CIRCLE from '../assets/single-header-circle.png';

const PokemonSingle = props => {
const { id, name, types } = useSelector(
state => state?.pokemons[props.name ?? 'bulbasaur']
);
const { id, name, types } = useSelector(state => state?.pokemons[props.name]);
const TYPE = types[0]?.type?.name ?? 'default';

Navigation.mergeOptions(props.componentId, {
Expand Down

0 comments on commit 2d7a08c

Please sign in to comment.