From ca8d5743c79f467258fcc72a73f2aa1c3a8c8824 Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Tue, 5 Apr 2022 20:32:56 -0500
Subject: show percentage if you don't have a perfect completion

---
 src/lib/sections/Harp.svelte | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/lib/sections/Harp.svelte')

diff --git a/src/lib/sections/Harp.svelte b/src/lib/sections/Harp.svelte
index 438f354..6a5c9cc 100644
--- a/src/lib/sections/Harp.svelte
+++ b/src/lib/sections/Harp.svelte
@@ -25,6 +25,8 @@
 			<div class="info-text">
 				{#if song.completions}
 					<p>Completions: <b class="info-text-value">{song.completions}</b></p>
+				{/if}
+				{#if song.perfectCompletions}
 					<p>Perfect completions: <b class="info-text-value">{song.perfectCompletions}</b></p>
 				{:else}
 					<p>Progress: <b class="info-text-value">{Math.floor(song.progress * 100)}%</b></p>
-- 
cgit 

