From dafb8664edfbe8bafc2e9fbdb580de74df3cbac2 Mon Sep 17 00:00:00 2001 From: aodulov Date: Wed, 26 Nov 2025 09:14:25 +0200 Subject: [PATCH] Exercise editing fixed --- components/Profile.tsx | 6 +++--- server/prisma/dev.db | Bin 61440 -> 61440 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Profile.tsx b/components/Profile.tsx index 7a789de..919e92f 100644 --- a/components/Profile.tsx +++ b/components/Profile.tsx @@ -177,11 +177,11 @@ const Profile: React.FC = ({ user, onLogout, lang, onLanguageChang await refreshExercises(); }; - const handleSaveExerciseEdit = () => { + const handleSaveExerciseEdit = async () => { if (editingExercise && editingExercise.name) { - saveExercise(user.id, editingExercise); + await saveExercise(user.id, editingExercise); setEditingExercise(null); - refreshExercises(); + await refreshExercises(); } }; diff --git a/server/prisma/dev.db b/server/prisma/dev.db index 5ee55aea04ad022f8499441ab31e662fc76f4c35..a981361e4eddba375a93531481026169238946ae 100644 GIT binary patch delta 1084 zcma)4O=}ZD7~YSR?xyKZ3Kl7`m_wvWowB>LpHiXH7A=BWo54fb)SWL06e?OtZ|R{Z z2x7|?1QAU22UN+a7jO3JMWhFX;t%i#h>Ej_M{(ygFwZ<6@B3^X>zl{=c1_*dIW?

o(CsfHEvfj)@w!nk2%kJlR6j~1GnXYF;) z>hl}?9&O*}OU;|}*Dg1&B!&czj~RxDy^zQQ1LjcZIX;6?;4AbC1^42td%AJ% zR=T=cUuv%}H7_+6X01EQD4xy#lh9_quwg*Lw9Tg&7B@YvEMzLs5Fxtcv$>6|dE0|j_s9~^-p@DL={f%UaN zQs1-SSsklIau_)1Mbo+|5w%@O8z6R%Vr6NRHcJ%aorDW9< z@CaDeu2t(-w}-4|r&Pum=XMk`j6yFU4u`IAV(7&&g~TNSrjg^4G)@C1q9R&ZFKKl3 z4gD{(YQ`uMh@vQ8xqu#_@@5AV#uUXq65Qn;Ey7%6_}X+wE8`m&n~IEO@|45`IX<*q zpUd8HDa~92X(Sl;h#!Q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