The distance filter is only displayed when present

This commit is contained in:
echarp 2019-02-27 12:43:20 +00:00
parent 082aac4f88
commit fc194b6f0b

View File

@ -7,7 +7,7 @@
%a(href="?tag=") %a(href="?tag=")
%em.fa.fa-times %em.fa.fa-times
- if params[:near].present? - if params[:near].present? && params[:near][:location].present? && params[:near][:distance].present?
%span.near %span.near
%em.fa.fa-map-pin %em.fa.fa-map-pin
= params[:near][:location] = params[:near][:location]