0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

now yes fixed

This commit is contained in:
Víctor Losada Hernández
2024-09-01 19:31:43 +02:00
parent fd2d1f1ce2
commit 6d24908465

View File

@@ -79,9 +79,7 @@ const VaultPage = (props) => {
if (response.ok)
updateStateWithBrews(response.body.brews, page);
} else {
setError('404');
}
}
};
const loadTotal = async ({ title, v3, legacy }) => {
@@ -96,10 +94,11 @@ const VaultPage = (props) => {
? error.response.status
: error.message}`
);
updateStateWithBrews([], 1);
});
if (response.ok)
updateStateWithBrews(response.body.brews, page);
setTotalBrews(response.body.totalBrews);
}
};