Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
justinenerio committed Sep 12, 2024
1 parent 2028ae1 commit 18f44a7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ class _ReceiveTextFieldState extends State<_ReceiveTextField>
}

void _call() {
if (widget.amount.decimal < widget.minAmount) return;

final calculateEquivalent = widget.calculateEquivalent;

if (calculateEquivalent == null) return;

debounce(() {
if (widget.amount.decimal < widget.minAmount) return;

setState(() {
_result = calculateEquivalent(widget.amount);
});
Expand Down Expand Up @@ -342,9 +342,9 @@ class _AdditionalInfoLabelState extends State<_AdditionalInfoLabel>
}

void _call() {
if (widget.amount.decimal < widget.minAmount) return;

debounce(() {
if (widget.amount.decimal < widget.minAmount) return;

setState(() {
_result = widget.feeCalculator?.call(widget.amount);
});
Expand Down

0 comments on commit 18f44a7

Please sign in to comment.