mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 11:18:16 +00:00
Merge branch 'master' into limitStreamListeners-#5090.1
This commit is contained in:
@@ -74,7 +74,7 @@ const VaultPage = (props)=>{
|
|||||||
updateStateWithBrews([], 1);
|
updateStateWithBrews([], 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
if(response.ok)
|
if(response?.ok)
|
||||||
updateStateWithBrews(response.body.brews, page);
|
updateStateWithBrews(response.body.brews, page);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -364,6 +364,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 (
|
||||||
@@ -373,6 +381,8 @@ const VaultPage = (props)=>{
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if(!brewCollection) {
|
if(!brewCollection) {
|
||||||
return (
|
return (
|
||||||
<div className='foundBrews noBrews'>
|
<div className='foundBrews noBrews'>
|
||||||
|
|||||||
Reference in New Issue
Block a user