mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 05:47:02 +00:00
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-vault-styles
This commit is contained in:
commit
61818d7b72
1 file changed
+16
-6
@@ -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,13 +438,23 @@ const VaultPage = (props)=>{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(error) {
|
if(error) {
|
||||||
const errorText = ErrorIndex()[error.HBErrorCode.toString()] || '';
|
if(error.HBErrorCode === undefined) {
|
||||||
|
return (
|
||||||
|
<div className='foundBrews noBrews'>
|
||||||
|
<h3>{error.toString()}</h3>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
|
||||||
return (
|
const errorText = ErrorIndex()[error.HBErrorCode.toString()] || '';
|
||||||
<div className='foundBrews noBrews'>
|
|
||||||
|
return (
|
||||||
|
<div className='foundBrews noBrews'>
|
||||||
<h3>Error: {errorText}</h3>
|
<h3>Error: {errorText}</h3>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!brewCollection) {
|
if(!brewCollection) {
|
||||||
|
|||||||
Reference in new issue
Block a user