From 67cb3455ad7283acb9b4ad3afeae571346c27a1d Mon Sep 17 00:00:00 2001 From: clang88 <71783092+clang88@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:54:39 +0100 Subject: [PATCH] Update CitationsModal.svelte --- src/lib/components/chat/Messages/CitationsModal.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/CitationsModal.svelte b/src/lib/components/chat/Messages/CitationsModal.svelte index a2bca2ded..88d6c7f6e 100644 --- a/src/lib/components/chat/Messages/CitationsModal.svelte +++ b/src/lib/components/chat/Messages/CitationsModal.svelte @@ -15,7 +15,7 @@ function calculatePercentage(distance: number) { if (distance < 0) return 0; if (distance > 1) return 100; - return Math.round((distance * 10000) / 100; + return Math.round(distance * 10000) / 100; } function getRelevanceColor(percentage: number) {