We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1449795 commit f7bb44bCopy full SHA for f7bb44b
app/components/pokemon-grid-item.gts
@@ -48,12 +48,11 @@ export default class PokemonGridItem extends Component<PokemonSignature> {
48
49
@cached
50
get thumbnailUrl() {
51
- return this.args.pokemon.image.thumbnail;
52
- // const state = getPromiseState(this.thumbnailRequest);
53
- // if (state.isError || state.isPending) {
54
- // return null;
55
- // }
56
- // return state.result;
+ const state = getPromiseState(this.thumbnailRequest);
+ if (state.isError || state.isPending) {
+ return null;
+ }
+ return state.result;
57
}
58
59
<template>
0 commit comments