From 24d65c89be79ae15de662f36f733305409bf9a92 Mon Sep 17 00:00:00 2001 From: Nodonisko Date: Fri, 17 May 2024 14:33:20 +0200 Subject: [PATCH] fix(mobile): fix graph old value on timeframe switch --- suite-native/react-native-graph/src/AnimatedLineGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite-native/react-native-graph/src/AnimatedLineGraph.tsx b/suite-native/react-native-graph/src/AnimatedLineGraph.tsx index cf35810c470..710c92f7d53 100644 --- a/suite-native/react-native-graph/src/AnimatedLineGraph.tsx +++ b/suite-native/react-native-graph/src/AnimatedLineGraph.tsx @@ -420,7 +420,7 @@ export function AnimatedLineGraph({ useAnimatedReaction( () => x.value, fingerX => { - if (!loading && (isActive.value || fingerX)) { + if (!loading && isActive.value && fingerX) { setFingerX(fingerX); runOnJS(setFingerPoint)(fingerX); }