Skip to content

Commit

Permalink
suggested search result links and remove testing comment & log
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonWingerAir committed Jan 22, 2024
1 parent ee920f7 commit f8d3b3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions pages/games/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ const gameId = computed(() => route.params.id);
const gameUrl = `${config.public.fetchBaseUrl}api/games/${gameId.value}`;
console.log(gameUrl);
const { data } = await useFetch<GameResults>(gameUrl);
const imgUrl = computed(() => data.value?.results.image.original_url ? data.value?.results.image.original_url : '/254x356-gamepad.png');
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/>
<div v-if="data?.results[0] && !hideSuggestions" class="px-2 pb-2 absolute z-20 bg-white border min-w-64">
<ul v-for="game in data?.results">
<!-- <li class="py-1">{{ game.name }}</li> -->
<li class="py-1"><NuxtLink :to="`/games/${game?.id}`">{{ game.name }}</NuxtLink></li>
</ul>
</div>
</div>
Expand Down

0 comments on commit f8d3b3a

Please sign in to comment.