Skip to content

Commit

Permalink
fix: market closed (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
balakrishna-deriv authored May 21, 2024
1 parent 888d56e commit 1955485
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/deriv_chart/chart/x_axis/widgets/x_axis_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class _XAxisStateWeb extends XAxisState {
super.didUpdateWidget(oldWidget);

if (_scrollAnimationController != null &&
oldWidget.entries.isNotEmpty &&
widget.entries.isNotEmpty &&
oldWidget.entries.last.epoch != widget.entries.last.epoch) {
_scrollAnimationController!
..reset()
Expand Down

0 comments on commit 1955485

Please sign in to comment.