From c93b37020b1522c2712fccb336e1dea5833864e4 Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Wed, 26 Oct 2022 17:40:40 +0200
Subject: [PATCH] fix

---
 app/views/extranet/organizations/show.html.erb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/views/extranet/organizations/show.html.erb b/app/views/extranet/organizations/show.html.erb
index 1448d4075..05921512f 100644
--- a/app/views/extranet/organizations/show.html.erb
+++ b/app/views/extranet/organizations/show.html.erb
@@ -17,8 +17,8 @@
             <li class="mb-4">
               <article class="row position-relative">
                 <div class="col-md-3">
-                  <% if experience.person.picture.attached? %>
-                    <%= kamifusen_tag experience.person.picture, width: 400, class: 'img-fluid' %>
+                  <% if experience.person.best_picture.attached? %>
+                    <%= kamifusen_tag experience.person.best_picture, width: 400, class: 'img-fluid' %>
                   <% else %>
                     <%= image_tag 'extranet/avatar.png', width: 400, class: 'img-fluid' %>
                   <% end %>
-- 
GitLab