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