Commit dd410e0e authored by Dan Hawkes's avatar Dan Hawkes Committed by Pooya Parsa

fix: Display of item type as 'link'

Migration to HNAPI related. Regular newsfeeds posts were of type 'story', but with the new API they're of type 'link'. This was causing all posts to have the word "link" after the comments count, when normally it'd only show the type if it was a job/ask post. Api docs here: https://github.com/tastejs/hacker-news-pwas/blob/1a01152121c06e285445bc693f0d87a5fa555c7b/docs/api.md
parent da3acabe
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<router-link :to="'/item/' + item.id">{{ item.comments_count }} comments</router-link> <router-link :to="'/item/' + item.id">{{ item.comments_count }} comments</router-link>
</span> </span>
</span> </span>
<span v-if="item.type !== 'story'" class="label" >{{ item.type }}</span> <span v-if="item.type !== 'link'" class="label">{{ item.type }}</span>
</li> </li>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment