diff --git a/client/homebrew/pages/vaultPage/vaultPage.jsx b/client/homebrew/pages/vaultPage/vaultPage.jsx index 682630b6f..c76505c7b 100644 --- a/client/homebrew/pages/vaultPage/vaultPage.jsx +++ b/client/homebrew/pages/vaultPage/vaultPage.jsx @@ -74,7 +74,7 @@ const VaultPage = (props)=>{ updateStateWithBrews([], 1); }); - if(response.ok) + if(response?.ok) updateStateWithBrews(response.body.brews, page); }; @@ -364,13 +364,23 @@ const VaultPage = (props)=>{ } if(error) { - const errorText = ErrorIndex()[error.HBErrorCode.toString()] || ''; + if(error.HBErrorCode === undefined) { + return ( +