Skip to content

Commit c71e23c

Browse files
committed
- Minor fixes
1 parent 0a9fd17 commit c71e23c

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

FRW/Modules/Wallet/MoveAsset/MoveSingleNFTView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ struct MoveSingleNFTView: RouteableView, PresentActionDelegate {
149149
state: viewModel.buttonState,
150150
action: {
151151
viewModel.moveAction()
152-
}, title: "move".localized
152+
},
153+
title: "move".localized
153154
)
154155
.padding(.horizontal, 18)
155156
}

FRW/Modules/Wallet/MoveAsset/ViewModel/MoveSingleNFTViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MoveSingleNFTViewModel: ObservableObject {
2121
loadUserInfo()
2222

2323
let accountViewModel = MoveAccountsViewModel(selected: "") { _ in }
24-
accountCount = accountViewModel.list.count
24+
self.accountCount = accountViewModel.list.count
2525
checkForInsufficientStorage()
2626
}
2727

FRW/Modules/Wallet/SideMenu/SideMenuView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,6 @@ class SideContainerViewModel: ObservableObject {
486486
name: .insufficientStorageTransactionFailure, object: nil
487487
)
488488

489-
490489
self.isLinkedAccount = ChildAccountManager.shared.selectedChildAccount != nil
491490
ChildAccountManager.shared.$selectedChildAccount
492491
.receive(on: DispatchQueue.main)
@@ -608,7 +607,6 @@ struct SideContainerView: View {
608607
showCloseButton: true,
609608
buttonsLayout: .horizontal,
610609
textAlignment: .center
611-
612610
)
613611
}
614612

FRW/Services/Manager/WalletManager.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ class WalletManager: ObservableObject {
8383
@Published
8484
var accountInfo: Flow.AccountInfo?
8585

86-
8786
var accessibleManager: ChildAccountManager.AccessibleManager = .init()
8887

8988
var flowAccountKey: Flow.AccountKey?
@@ -824,8 +823,7 @@ extension WalletManager {
824823

825824
func isStorageInsufficient(for amount: Decimal) -> Bool {
826825
guard let accountInfo else { return false }
827-
// TODO: Remove the equality comparison - used for development/testing only
828-
return accountInfo.availableBalance - amount <= Self.minDefaultBlance
826+
return accountInfo.availableBalance - amount < Self.minDefaultBlance
829827
}
830828

831829
var isBalanceInsufficient: Bool {

FRW/UI/Component/StorageUsageView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ struct StorageUsageView: View {
7474
view.footerView = AnyView(footer)
7575
return view
7676
}
77-
7877
}
7978

8079
#Preview {

0 commit comments

Comments
 (0)