Skip to content

Commit

Permalink
fix: add additional check for pending lighthouse
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 8, 2024
1 parent b8ecfe9 commit 9e60219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
No results could be fetched. Is it a valid domain?
</div>
<TheShareLink v-if="crux || lighthouse" :domain="domain" :type="crux ? 'crux' : 'pagespeed-insights'"
:timestamp="cruxStatus === 'pending' ? undefined : crux?.timestamp || lighthouse!.timestamp" />
:timestamp="crux && cruxStatus !== 'pending' ? crux.timestamp : lighthouse && lighthouseStatus !== 'pending' ? lighthouse.timestamp : undefined" />
<details class="max-w-[500px] text-gray-400">
<summary class="cursor-pointer">
About these results
Expand Down

0 comments on commit 9e60219

Please sign in to comment.