From 2a0e433f84b65b15b406507767615fe79e03ad09 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Wed, 10 Apr 2024 13:40:50 +0200
Subject: [PATCH] chore: fix function type

related to fb472f59753f178e0898040eee0c2f0d062558af
---
 .../Konnector/ConnectionResult/ConnectionResult.tsx         | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/components/Konnector/ConnectionResult/ConnectionResult.tsx b/src/components/Konnector/ConnectionResult/ConnectionResult.tsx
index e9ed092d8..32ea312b4 100644
--- a/src/components/Konnector/ConnectionResult/ConnectionResult.tsx
+++ b/src/components/Konnector/ConnectionResult/ConnectionResult.tsx
@@ -259,11 +259,7 @@ const ConnectionResult = ({
         )}
         <Button
           aria-label={t('konnector_form.accessibility.button_update')}
-          onClick={
-            consentError
-              ? () => handleRefreshConsent(fluidType)
-              : updateKonnector
-          }
+          onClick={consentError ? handleRefreshConsent : updateKonnector}
           disabled={updating || deleting}
           className="btnPrimary"
         >
-- 
GitLab