From 78060fa15fb55c597918042559d544ff4528dc24 Mon Sep 17 00:00:00 2001 From: enes Date: Thu, 15 Aug 2024 16:43:10 +0200 Subject: [PATCH] fix(marks): assign selectedMarkValue to currentValue and mark.value --- src/utils/mark.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/mark.ts b/src/utils/mark.ts index 18cc3e8..f0cd47e 100644 --- a/src/utils/mark.ts +++ b/src/utils/mark.ts @@ -119,7 +119,11 @@ const getUpdatedMark = ( return { ...selectedMark, currentValue: selectedMarkValue, - isCompleted: !!selectedMarkValue + isCompleted: !!selectedMarkValue, + mark: { + ...selectedMark.mark, + value: selectedMarkValue + } } }