Skip to content

Commit

Permalink
smol fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peerchemist committed Nov 14, 2024
1 parent 8b8fb3e commit ff5f9ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/screens/wallet/wallet_sign_transaction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class _WalletSignTransactionScreenState
setState(() {
_signingAddress = addresses.first.address;
});
_saveSnack(); // Optionally show a snackbar
}
}

Expand Down Expand Up @@ -318,17 +317,18 @@ class _WalletSignTransactionScreenState
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
_signingAddress == ''
_signingAddress.isEmpty
? AppLocalizations.instance
.translate('sign_step_1')
: 'Address', // TODO: Add translation?
: AppLocalizations.instance
.translate('send_address'),
style: Theme.of(context).textTheme.titleLarge,
),
],
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 20),
child: _signingAddress == ''
child: _signingAddress.isEmpty
? Text(
AppLocalizations.instance.translate(
'sign_transaction_step_1_description',
Expand All @@ -340,11 +340,11 @@ class _WalletSignTransactionScreenState
child: SelectableText(_signingAddress),
),
),
if (_signingAddress == '')
if (_signingAddress.isEmpty)
PeerButton(
action: () => _showAddressSelector(),
text: AppLocalizations.instance.translate(
_signingAddress == ''
_signingAddress.isEmpty
? 'sign_step_1_button'
: 'sign_step_1_button_alt',
),
Expand Down

0 comments on commit ff5f9ac

Please sign in to comment.