From 46bde494975c31130702cdf1fcf4b072c5f7f955 Mon Sep 17 00:00:00 2001 From: Abhay Raizada Date: Fri, 26 Apr 2024 09:23:38 +0530 Subject: [PATCH] Default npub works --- components/PrescriptionCreator/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/PrescriptionCreator/index.tsx b/components/PrescriptionCreator/index.tsx index 3484f33..2753caa 100644 --- a/components/PrescriptionCreator/index.tsx +++ b/components/PrescriptionCreator/index.tsx @@ -108,7 +108,7 @@ export const PrescriptionCreator = ({ form }: { form: any }) => { if (form === null) return Loading... const [showImportNsec, setShowImportNsec] = useState(false); const [loggedInNpub, setLoggedInNpub] = useState("") - const [selectedPharmacyId, setSelectedPharmacyId] = useState(""); + const [selectedPharmacyId, setSelectedPharmacyId] = useState(locationData[0].npub); const [selectedPharmacyRelays, setSelectedPharmacyRelays] = useState([]); const [finalJSON, setFinalJson] = useState({})