Skip to content

Commit

Permalink
fix(mobile): fix graph old value on timeframe switch (#12463)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodonisko authored May 17, 2024
1 parent a86e287 commit 6b97cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suite-native/react-native-graph/src/AnimatedLineGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export function AnimatedLineGraph<TEventPayload extends object>({
useAnimatedReaction(
() => x.value,
fingerX => {
if (!loading && (isActive.value || fingerX)) {
if (!loading && isActive.value && fingerX) {
setFingerX(fingerX);
runOnJS(setFingerPoint)(fingerX);
}
Expand Down

0 comments on commit 6b97cdb

Please sign in to comment.