Skip to content

Commit

Permalink
add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbully committed Jul 19, 2020
1 parent 4703685 commit 14f7197
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<div class="search-results">
<spinner v-if="loading"></spinner>

<p v-else-if="locations.length === 0">No results</p>

<div
v-else
v-for="location in locations"
Expand Down Expand Up @@ -154,6 +156,11 @@ export default {
background: $grey;
}
p {
color: $grey;
text-align: center;
}
div {
padding: 24px 16px;
margin-bottom: 16px;
Expand Down

1 comment on commit 14f7197

@vercel
Copy link

@vercel vercel bot commented on 14f7197 Jul 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.