0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 19:52:43 +00:00
This commit is contained in:
Trevor Buckner
2025-01-05 23:07:53 -05:00
parent aa4276a50e
commit 766ab8f10a

View File

@@ -9,7 +9,7 @@ const ErrorBar = (props)=>{
if(!props.errors.length) return null;
let hasOpenError = false, hasCloseError = false, hasMatchError = false;
props.errors.map( err => {
props.errors.map((err)=>{
if(err.id === 'OPEN') hasOpenError = true;
if(err.id === 'CLOSE') hasCloseError = true;
if(err.id === 'MISMATCH') hasMatchError = true;
@@ -18,9 +18,9 @@ const ErrorBar = (props)=>{
const renderErrors = ()=>(
<ul>
{props.errors.map((err, idx)=>{
<li key={idx}>
Line {err.line} : {err.text}, '{err.type}' tag
</li>
<li key={idx}>
Line {err.line} : {err.text}, '{err.type}' tag
</li>;
})}
</ul>
);