Skip to content

Commit

Permalink
settings - testnet button conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mocodesmo committed May 29, 2024
1 parent 72bd1e9 commit f355334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/settings/bitcoin_settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ class TestNetButton extends StatelessWidget {
Widget build(BuildContext context) {
final testnet = context.select((NetworkCubit _) => _.state.testnet);

if (!testnet) return const SizedBox.shrink();

return BlocListener<NetworkCubit, NetworkState>(
listenWhen: (previous, current) => previous.testnet != current.testnet,
listener: (context, state) {
Expand Down

0 comments on commit f355334

Please sign in to comment.