This commit is contained in:
StsDanilo 2025-10-30 19:24:02 -03:00
commit 7ba25a7801
2 changed files with 6 additions and 1 deletions

View File

@ -53,6 +53,7 @@ export default function PatientDashboard() {
}; };
useEffect(() => { useEffect(() => {
userInfo = JSON.parse(localStorage.getItem("user_info") || "{}")
const fetchData = async () => { const fetchData = async () => {
userInfo = JSON.parse(localStorage.getItem("user_info") || "{}"); userInfo = JSON.parse(localStorage.getItem("user_info") || "{}");
try { try {

View File

@ -53,6 +53,10 @@ export default function ExceptionPage() {
const doctorIdTemp = "3bb9ee4a-cfdd-4d81-b628-383907dfa225"; const doctorIdTemp = "3bb9ee4a-cfdd-4d81-b628-383907dfa225";
const [tipo, setTipo] = useState<string>(""); const [tipo, setTipo] = useState<string>("");
useEffect (()=>{
userInfo = JSON.parse(localStorage.getItem("user_info") || "{}")
})
useEffect(() => { useEffect(() => {
userInfo = JSON.parse(localStorage.getItem("user_info") || "{}"); userInfo = JSON.parse(localStorage.getItem("user_info") || "{}");
}); });