mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
fix(medications): localise the per-schedule dose accent too
The medication and GLP-1 cards print a per-schedule dose override as a
trailing accent ("— 5 mg"), straight from the stored string, so the same
raw unit token the main dose carried still showed through there. Run it
through formatDose so the per-schedule accent localises like the rest.
This commit is contained in:
1 parent
09be190f9f
commit
220233e845
2 files changed
+2
-2
No files matched your search
@@ -468,7 +468,7 @@ export function Glp1MedicationCard({
|
||||
{schedule?.dose && (
|
||||
<span className="text-dose-accent hidden font-medium sm:inline">
|
||||
{" "}
|
||||
— {schedule.dose}
|
||||
— {formatDose(schedule.dose, t)}
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -452,7 +452,7 @@ export function MedicationCard({
|
||||
{s.dose && (
|
||||
<span className="text-dose-accent hidden font-medium sm:inline">
|
||||
{" "}
|
||||
— {s.dose}
|
||||
— {formatDose(s.dose, t)}
|
||||
</span>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user