diff --git a/src/components/medications/glp1-medication-card.tsx b/src/components/medications/glp1-medication-card.tsx index 3f68c1789..d81aedefa 100644 --- a/src/components/medications/glp1-medication-card.tsx +++ b/src/components/medications/glp1-medication-card.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import { useId, useState } from "react"; import { useQuery, useQueryClient } from "@tanstack/react-query"; import Link from "next/link"; import { @@ -161,6 +161,7 @@ export function Glp1MedicationCard({ const fmt = useFormatters(); const [intakeLoading, setIntakeLoading] = useState(null); const [showHistory, setShowHistory] = useState(false); + const doseHistoryId = useId(); const { data: compliance } = useQuery({ queryKey: ["medications", medication.id, "compliance"], @@ -368,7 +369,11 @@ export function Glp1MedicationCard({ setShowHistory((e.target as HTMLDetailsElement).open) } > - + {t("medications.glp1DoseHistory")} -
+
{doseChanges.length === 0 && (

{t("medications.glp1DoseHistoryEmpty")}