fix the UI issue with sending outputs (#1798)
Serhii committed
Nov 11, 2024 at 19:39 UTC
e148f645086e0c6797aab2121d8e707fa8cc18c7
1 file changed
+1
-2
lib/view_model/send/send_view_model.dart
+1
-2
@@ -404,8 +404,7 @@ abstract class SendViewModelBase extends WalletChangeListenerViewModel with Stor
404
final updatedOutputs = bitcoin!.updateOutputs(pendingTransaction!, outputs);
405
406
if (outputs.length == updatedOutputs.length) {
407
- outputs.clear();
408
- outputs.addAll(updatedOutputs);
407
+ outputs.replaceRange(0, outputs.length, updatedOutputs);
408
}
409
}
410