Skip to content

Commit 09a7f05

Browse files
committed
fix initialization errors on sendview
1 parent 24c5840 commit 09a7f05

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/pages/send_view/send_view.dart

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,14 @@ class _SendViewState extends ConsumerState<SendView> {
12591259
@override
12601260
void initState() {
12611261
coin = widget.coin;
1262+
isFiro = coin is Firo;
1263+
isEth = coin is Ethereum;
1264+
hasOptionalMemo = coin is Stellar || coin is Solana;
1265+
1266+
_data = widget.autoFillData;
1267+
walletId = widget.walletId;
1268+
clipboard = widget.clipboard;
1269+
12621270
WidgetsBinding.instance.addPostFrameCallback((_) {
12631271
ref.refresh(feeSheetSessionCacheProvider);
12641272
ref.refresh(pIsExchangeAddress);
@@ -1275,12 +1283,6 @@ class _SendViewState extends ConsumerState<SendView> {
12751283
_calculateFeesFuture = calculateFees(
12761284
0.toAmountAsRaw(fractionDigits: coin.fractionDigits),
12771285
);
1278-
_data = widget.autoFillData;
1279-
walletId = widget.walletId;
1280-
clipboard = widget.clipboard;
1281-
hasOptionalMemo = coin is Stellar || coin is Solana;
1282-
isFiro = coin is Firo;
1283-
isEth = coin is Ethereum;
12841286

12851287
sendToController = TextEditingController();
12861288
cryptoAmountController = TextEditingController();

0 commit comments

Comments
 (0)