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:
Marc-André Bombeck committed 2026-06-30 21:31:45 +02:00
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>
)}
</>