X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4eecd59a5d976f6edf857c059fa28ed931b73121..2a6f78747e2013a1e606f9bc08b39f9c392d154a:/app/views/dashboards/show.html.erb?ds=inline

diff --git a/app/views/dashboards/show.html.erb b/app/views/dashboards/show.html.erb
index d0344ce79..744661dfd 100644
--- a/app/views/dashboards/show.html.erb
+++ b/app/views/dashboards/show.html.erb
@@ -5,7 +5,7 @@
 <div class="row">
   <% if current_user and @user.id == current_user.id %>
     <div class="col-md order-md-last">
-      <% if @user.home_lat.nil? or @user.home_lon.nil? %>
+      <% if !@user.home_location? %>
         <div id="map" class="content_map border border-grey">
           <p class="m-3"><%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %></p>
         </div>