diff --git a/daemon/web/src/lib/components/AnalysisView.svelte b/daemon/web/src/lib/components/AnalysisView.svelte index 990b4ae..3ffd8bc 100644 --- a/daemon/web/src/lib/components/AnalysisView.svelte +++ b/daemon/web/src/lib/components/AnalysisView.svelte @@ -22,26 +22,26 @@

Error getting analysis report: {entry.analysis_report}

{:else} {@const metadata: ReportMetadata = entry.analysis_report.metadata} + {@const numWarnings: number = entry.get_num_warnings() || 0}
- {#if !current} - {@const numWarnings: number = entry.get_num_warnings() || 0} + {#if !!numWarnings || !current}
- {#if numWarnings} + {#if !!numWarnings}
Your Rayhunter device raised {`${numWarnings}`} warning{`${ - numWarnings > 0 ? 's' : '' + numWarnings > 1 ? 's' : '' }`}! Read the FAQ to learn what you can do about it
- {:else} -
{/if} - + {#if !current} + + {/if}
{/if} {#if entry.analysis_report.rows.length > 0}