0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 01:42:42 +00:00

Fix "No tags" message

This commit is contained in:
G.Ambatte
2023-04-09 21:33:57 +12:00
parent bc83e1f84d
commit d5dbf46fc4

View File

@@ -34,7 +34,7 @@ const MetadataNav = createClass({
}, },
getTags : function(){ getTags : function(){
if(!this.props.brew.tags) return 'No tags'; if(this.props.brew.tags.length == 0) return 'No tags';
return <> return <>
{this.props.brew.tags.map((tag, idx)=>{ {this.props.brew.tags.map((tag, idx)=>{
return <span className='tag' key={idx}>{tag}</span>; return <span className='tag' key={idx}>{tag}</span>;