Skip to content

Commit

Permalink
[circuit] fix #154 (update leader gap check)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed May 2, 2024
1 parent eebe6c0 commit a63633a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/Screens/circuit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,11 @@ class CircuitScreen extends StatelessWidget {
Expanded(
flex: 6,
child: Text(
driverResults[
'gapToLeader'] !=
"0.0"
driverResults['gapToLeader'] !=
"0.0" &&
driverResults[
'gapToLeader'] !=
"0"
? '+${driverResults['gapToLeader']}'
: driverResults[
'raceTime'],
Expand Down Expand Up @@ -979,9 +981,10 @@ class CircuitScreen extends StatelessWidget {
Expanded(
flex: 6,
child: Text(
driverResults[
'gapToLeader'] !=
"0.0"
driverResults['gapToLeader'] !=
"0.0" &&
driverResults['gapToLeader'] !=
"0"
? '+${driverResults['gapToLeader']}'
: driverResults[
'raceTime'],
Expand Down

0 comments on commit a63633a

Please sign in to comment.