Don't show "Drop to ..." if total rooms = 0

pull/21833/head
Luke Barnard 2017-05-25 13:55:37 +01:00
parent 3185d3ed41
commit 7900bf1c7d
1 changed files with 4 additions and 0 deletions

View File

@ -540,6 +540,10 @@ module.exports = React.createClass({
} }
} }
if (this.state.totalRoomCount === 0) {
return null;
}
const labelText = 'Drop here to ' + (VERBS[section] || 'tag ' + section); const labelText = 'Drop here to ' + (VERBS[section] || 'tag ' + section);
return <RoomDropTarget label={labelText} />; return <RoomDropTarget label={labelText} />;