0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 04:42:41 +00:00

test 404 error

This commit is contained in:
Víctor Losada Hernández
2024-02-15 15:28:36 +01:00
parent 7626f63beb
commit fcb4c722c6

View File

@@ -243,7 +243,6 @@ const ArchivePage = createClass({
renderFoundBrews() {
const { title, brewCollection, page, totalPages, error, searching } = this.state;
console.log(searching === false && !brewCollection);
if(searching === false && title === '' && error === null) {return (<div className='foundBrews noBrews'><h3>Whenever you want, just start typing...</h3></div>);}
if(searching === false && error === 'Error: Service Unavailable') {
@@ -254,7 +253,7 @@ const ArchivePage = createClass({
</div></div>
);
};
console.log('404: ', searching === false && (!brewCollection || error === 'Error: Not found'))
if(searching === false && (!brewCollection || error === 'Error: Not found')) {
return (
<div className='foundBrews noBrews'>