Skip to content
Snippets Groups Projects
Commit d2b25b7a authored by poka's avatar poka
Browse files

fix LateInitializationError: Field 'api' has not been initialized.

parent 736f7790
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ class CertsCounter extends StatelessWidget {
Widget build(BuildContext context) {
return Consumer<SubstrateSdk>(builder: (context, sub, _) {
return Text(
'(${sub.certsCounterCache[address]![isSent ? 1 : 0]})',
'(${isSent ? sub.certsCounterCache[address]!.sentCount : sub.certsCounterCache[address]!.receivedCount})',
style: scaledTextStyle(fontSize: 16),
);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment