From 601b337369ba4a0f85d82e3e82f8a2e360a304ec Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 14 Dec 2024 12:55:55 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9sactivation=20de=20boutons=20pendant=20l?= =?UTF-8?q?es=20requ=C3=AAtes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/app/challenges-list.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/app/challenges-list.tsx b/client/app/challenges-list.tsx index 633d35f..13a08fc 100644 --- a/client/app/challenges-list.tsx +++ b/client/app/challenges-list.tsx @@ -179,13 +179,13 @@ export default function ChallengesList() { inputMode='numeric' onChangeText={(text) => setEditChallengeReward(+text)} error={!editChallengeReward} - onEndEditing={sendEditChallenge} /> + onEndEditing={() => !addChallengeMutation.isPending && editChallengeMutation.isPending && sendEditChallenge()} /> @@ -199,7 +199,7 @@ export default function ChallengesList() { - +