Skip to content

Commit

Permalink
fix round date starts show on broadcast grid card
Browse files Browse the repository at this point in the history
  • Loading branch information
julien4215 committed Aug 27, 2024
1 parent 0815c3d commit 65c5deb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/view/broadcast/broadcasts_list_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ class StartsRoundDate extends ConsumerWidget {

return Text(
timeBeforeRound.inDays == 0
? 'In ${timeBeforeRound.inHours} hours'
? timeBeforeRound.inHours == 0
? 'In ${timeBeforeRound.inMinutes} minutes' // TODO: translate
: 'In ${timeBeforeRound.inHours} hours' // TODO: translate
: timeBeforeRound.inDays < 365
? dateFormatter.format(startsAt)
: dateFormatterWithYear.format(startsAt),
Expand Down

0 comments on commit 65c5deb

Please sign in to comment.