Update CitationsModal.svelte
This commit is contained in:
1 parent
ad0b599940
commit
67cb3455ad
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user