We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5252cc6 commit 68b42aeCopy full SHA for 68b42ae
1 file changed
app/lib/screens/farm_details.dart
@@ -74,7 +74,7 @@ class _FarmDetailsState extends State<FarmDetails> {
74
75
try {
76
final balance = await getBalanceByAccountId(address);
77
- if (balance == '-1') {
+ if (double.parse(balance) <= -1) {
78
setState(() {
79
stellarAddressError = 'Wallet not activated on stellar';
80
});
@@ -120,7 +120,7 @@ class _FarmDetailsState extends State<FarmDetails> {
120
121
122
final balance = await getBalanceByAccountId(newAddress);
123
124
if (context.mounted) {
125
ScaffoldMessenger.of(context).clearSnackBars();
126
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
0 commit comments