From fc3ec6aa0a74645fd9a41492be5e56b01f482d2f Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 1 May 2024 14:59:44 -0600 Subject: [PATCH] frost display WU instead of vByte --- lib/pages/send_view/frost_ms/frost_send_view.dart | 1 + lib/widgets/fee_slider.dart | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/send_view/frost_ms/frost_send_view.dart b/lib/pages/send_view/frost_ms/frost_send_view.dart index e0a080a88..778085b6f 100644 --- a/lib/pages/send_view/frost_ms/frost_send_view.dart +++ b/lib/pages/send_view/frost_ms/frost_send_view.dart @@ -524,6 +524,7 @@ class _FrostSendViewState extends ConsumerState { ), child: FeeSlider( coin: coin, + showWU: true, onSatVByteChanged: (rate) { customFeeRate = rate; }, diff --git a/lib/widgets/fee_slider.dart b/lib/widgets/fee_slider.dart index d125988f3..64e3af12b 100644 --- a/lib/widgets/fee_slider.dart +++ b/lib/widgets/fee_slider.dart @@ -9,9 +9,11 @@ class FeeSlider extends StatefulWidget { super.key, required this.onSatVByteChanged, required this.coin, + this.showWU = false, }); final Coin coin; + final bool showWU; final void Function(int) onSatVByteChanged; @override @@ -34,7 +36,7 @@ class _FeeSliderState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( - "sat/vByte", + widget.showWU ? "sat/WU" : "sat/vByte", style: STextStyles.smallMed12(context), ), Text(