Skip to content

Commit

Permalink
Hotfix for loading home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pereira committed Sep 11, 2021
1 parent d6475dd commit de11f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/sections/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class Home extends Vue {
}
get filteredDataArray(): ({ type: string; items: string[]; }[] | { type: string; items: any; })[] {
if (this.userInput === '' && this.$store.getters.favourites && this.$store.getters.recentlyViewed.length === 0) {
if (this.userInput === '' && !Object.keys(this.$store.getters.favourites.hasOwnProperty).length && this.$store.getters.recentlyViewed.length === 0) {
return [{
type: 'Suggested Hotspots', items: hotspots.miners
}]
Expand All @@ -68,7 +68,7 @@ export default class Home extends Vue {
if (this.userInput === '') {
const results = []
if (Object.keys(this.$store.getters.recentlyViewed.favourites).length === 0) {
if (!Object.keys(this.$store.getters.favourites.hasOwnProperty).length) {
results.push([{
type: 'Suggested Hotspots', items: hotspots.miners
}])
Expand Down

0 comments on commit de11f77

Please sign in to comment.