fix: removed bad state

This commit is contained in:
Deven Joshi
2021-01-18 16:12:20 +05:30
parent 835c73204a
commit 8ddd75707f
+2 -1
View File
@@ -40,7 +40,8 @@ class ReactionPicker extends StatelessWidget {
final totalScore = message.latestReactions
.where((r) => r.type == reactionType)
.map((r) => r.score)
.reduce((tot, s) => tot + s);
.fold(0, (tot, s) => tot + s);
return Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.start,