0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 23:52:42 +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) if (response.ok)
updateStateWithBrews(response.body.brews, page); updateStateWithBrews(response.body.brews, page);
} else { }
setError('404');
}
}; };
const loadTotal = async ({ title, v3, legacy }) => { const loadTotal = async ({ title, v3, legacy }) => {
@@ -96,10 +94,11 @@ const VaultPage = (props) => {
? error.response.status ? error.response.status
: error.message}` : error.message}`
); );
updateStateWithBrews([], 1);
}); });
if (response.ok) if (response.ok)
updateStateWithBrews(response.body.brews, page); setTotalBrews(response.body.totalBrews);
} }
}; };