Skip to content

Commit

Permalink
Doesn't show the fiat amount when the sats balance is zero (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
ademar111190 authored Oct 11, 2023
1 parent 06b48d4 commit f63e7da
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/routes/home/widgets/dashboard/fiat_balance_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ class _FiatBalanceTextState extends State<FiatBalanceText> {
);
}
},
child: Text(
widget.currencyState.fiatConversion()?.format(widget.accountState.balance) ?? "",
style: theme.balanceFiatConversionTextStyle.copyWith(
color: themeData.colorScheme.onSecondary.withOpacity(
pow(1.00 - widget.offsetFactor, 2).toDouble(),
),
),
),
child: widget.accountState.balance > 0
? Text(
widget.currencyState.fiatConversion()?.format(widget.accountState.balance) ?? "",
style: theme.balanceFiatConversionTextStyle.copyWith(
color: themeData.colorScheme.onSecondary.withOpacity(
pow(1.00 - widget.offsetFactor, 2).toDouble(),
),
),
)
: Container(),
);
}

Expand Down

0 comments on commit f63e7da

Please sign in to comment.