From 5efa12f358c83c8ab453ac016a851941bd6e33f5 Mon Sep 17 00:00:00 2001 From: TERR-inss Date: Wed, 11 Feb 2026 21:57:06 -0500 Subject: [PATCH] fix conditional rendering and conditional text logic, use more-stable faq url --- .../web/src/lib/components/AnalysisView.svelte | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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}