Skip to content

Commit 68b42ae

Browse files
committed
fix condition in farm details
1 parent 5252cc6 commit 68b42ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/lib/screens/farm_details.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class _FarmDetailsState extends State<FarmDetails> {
7474

7575
try {
7676
final balance = await getBalanceByAccountId(address);
77-
if (balance == '-1') {
77+
if (double.parse(balance) <= -1) {
7878
setState(() {
7979
stellarAddressError = 'Wallet not activated on stellar';
8080
});
@@ -120,7 +120,7 @@ class _FarmDetailsState extends State<FarmDetails> {
120120

121121
try {
122122
final balance = await getBalanceByAccountId(newAddress);
123-
if (balance == '-1') {
123+
if (double.parse(balance) <= -1) {
124124
if (context.mounted) {
125125
ScaffoldMessenger.of(context).clearSnackBars();
126126
ScaffoldMessenger.of(context).showSnackBar(SnackBar(

0 commit comments

Comments
 (0)