diff --git a/lib/pages/staking/actions/actions.dart b/lib/pages/staking/actions/actions.dart index 88fc15ec2..725424238 100644 --- a/lib/pages/staking/actions/actions.dart +++ b/lib/pages/staking/actions/actions.dart @@ -405,7 +405,7 @@ class _StakingActions extends State { WidgetsBinding.instance!.addPostFrameCallback((_) { if (widget.plugin.store!.staking.ownStashInfo == null) { if (_refreshKey.currentState != null) { - _refreshKey.currentState!.show(); + _updateStakingInfo(); } } else { _updateStakingInfo(); diff --git a/lib/pages/staking/validators/overview.dart b/lib/pages/staking/validators/overview.dart index 0691eb6a9..b241c9cbc 100644 --- a/lib/pages/staking/validators/overview.dart +++ b/lib/pages/staking/validators/overview.dart @@ -444,21 +444,11 @@ class _StakingOverviewPageState extends State { @override Widget build(BuildContext context) { final dicStaking = - I18n.of(context)!.getDic(i18n_full_dic_kusama, 'staking'); + I18n.of(context)!.getDic(i18n_full_dic_kusama, 'staking') ?? {}; return Observer( builder: (_) { final int decimals = widget.plugin.networkState.tokenDecimals![0]; - final List _listTabs = [ - Tab( - text: - '${dicStaking!['elected']} (${widget.plugin.store!.staking.electedInfo.length})', - ), - Tab( - text: - '${dicStaking['waiting']} (${widget.plugin.store!.staking.nextUpsInfo.length})', - ), - ]; - List list = [ + final List list = [ // index_0: the overview card _buildTopCard(context), // index_1: the 'Validators' label