Skip to content

Commit

Permalink
Update visualizarMetrica.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Kauan-F20 committed Jan 15, 2025
1 parent bb02a27 commit 0bf3a43
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/app/private/pages/visualizarMetrica.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,23 @@ export default function VisualizarMetrica() {
getHidratacao(response as string);
});
};

//tentando corrigir isso aqui depois de subir os idosos no banco remoto
const getIdoso = () => {
AsyncStorage.getItem("idoso").then((idosoString) => {

const response = await fetch(BASE_URL, {
method: "GET",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
},
});

/*AsyncStorage.getItem("idoso").then((idosoString) => {
if (idosoString) {
const idosoPayload = JSON.parse(idosoString) as IIdoso;
setIdoso(idosoPayload);
}
});
});*/
};

const getMetricasValues = async () => {
Expand Down

0 comments on commit 0bf3a43

Please sign in to comment.