Skip to content

Commit

Permalink
fix(quick-glance): show a less threatening note about missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Dec 13, 2024
1 parent 02d64f0 commit 2d5197e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/quickGlance/QuickGlance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ export const QuickGlance = ({ class: className }: { class?: string }) => {
return () => clearTimeout(t)
})

// Only show the quick glance error if the device has been on for at least 2 minutes
if (!ok && !warmupTimePassed) return null

return (
<section
id="quickGlance"
Expand All @@ -58,8 +55,8 @@ export const QuickGlance = ({ class: className }: { class?: string }) => {
})}
>
{ok && <AllOK />}
{!ok && <DeviceHasProblems />}
{!hasLiveData && <WaitingForData />}
{!ok && !hasLiveData && warmupTimePassed && <DeviceHasProblems />}
{!ok && !hasLiveData && <WaitingForData />}
{hasLiveData && (
<>
{(!fwOk || !mfwOk) && <NeedsFOTA />}
Expand Down

0 comments on commit 2d5197e

Please sign in to comment.