diff --git a/controller/predicates/is_coarse_reverse.js b/controller/predicates/is_coarse_reverse.js index c8a292dd..e02f90c5 100644 --- a/controller/predicates/is_coarse_reverse.js +++ b/controller/predicates/is_coarse_reverse.js @@ -5,5 +5,5 @@ const non_coarse_layers = ['address', 'street', 'venue']; module.exports = (req, res) => { // returns true if layers is undefined, empty, or contains 'address', 'street', or 'venue' return !_.isEmpty(req.clean.layers) && - _.intersection(req.clean.layers, non_coarse_layers).length === 0; + _.isEmpty(_.intersection(req.clean.layers, non_coarse_layers)); };