Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-vault-styles

This commit is contained in:
Víctor Losada Hernández committed 2026-10-13 14:14:52 +02:00
commit 61818d7b72
1 file changed
+11 -1
+11 -1
View File
@@ -90,7 +90,7 @@ const VaultPage = (props)=>{
updateStateWithBrews([], 1); updateStateWithBrews([], 1);
}); });
if(response.ok) if(response?.ok)
updateStateWithBrews(response.body.brews, page); updateStateWithBrews(response.body.brews, page);
}; };
@@ -438,6 +438,14 @@ const VaultPage = (props)=>{
} }
if(error) { if(error) {
if(error.HBErrorCode === undefined) {
return (
<div className='foundBrews noBrews'>
<h3>{error.toString()}</h3>
</div>
)
} else {
const errorText = ErrorIndex()[error.HBErrorCode.toString()] || ''; const errorText = ErrorIndex()[error.HBErrorCode.toString()] || '';
return ( return (
@@ -447,6 +455,8 @@ const VaultPage = (props)=>{
); );
} }
}
if(!brewCollection) { if(!brewCollection) {
return ( return (
<div className='foundBrews noBrews'> <div className='foundBrews noBrews'>