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

Move exit condition to start

This commit is contained in:
Trevor Buckner
2025-01-05 23:06:56 -05:00
parent fbedafb204
commit aa4276a50e

View File

@@ -6,6 +6,7 @@ import Dialog from '../../../components/dialog.jsx';
const DISMISS_BUTTON = <i className='fas fa-times dismiss' />;
const ErrorBar = (props)=>{
if(!props.errors.length) return null;
let hasOpenError = false, hasCloseError = false, hasMatchError = false;
props.errors.map( err => {
@@ -33,9 +34,6 @@ const ErrorBar = (props)=>{
</div>
);
if(!props.errors.length) return null;
return (
<Dialog className='errorBar' closeText={DISMISS_BUTTON} >
<div>