From 3a7fead9298f110b7c7510d599e7335c5aeb0dc3 Mon Sep 17 00:00:00 2001
From: eternal-flame-AD <yume@yumechi.jp>
Date: Sat, 19 Nov 2022 02:56:07 -0600
Subject: [PATCH] fixup! fix health offset calculation

---
 webroot/includes/page-health-meds.tpl.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webroot/includes/page-health-meds.tpl.html b/webroot/includes/page-health-meds.tpl.html
index 947b5aa..0522229 100644
--- a/webroot/includes/page-health-meds.tpl.html
+++ b/webroot/includes/page-health-meds.tpl.html
@@ -503,7 +503,7 @@
                                             }
                                             labelTimeElement(projectedTr.children[1], data.expected.time, "YY-MM-DD HH:mm");
                                             projectedTr.children[2].innerText = `${data.expected.dose} ${med.dosage_unit} (${(prn || adlib) ? "available" : "scheduled"})`;
-                                            projectedTr.children[3].innerText = data.dose_offset;
+                                            projectedTr.children[3].innerText = data.dose_offset?.toFixed(2);
                                             tbody.appendChild(projectedTr);
 
                                             logs.forEach(log => {