Skip to content

Commit

Permalink
- Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeden committed Nov 14, 2024
1 parent 0a9fd17 commit c71e23c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion FRW/Modules/Wallet/MoveAsset/MoveSingleNFTView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ struct MoveSingleNFTView: RouteableView, PresentActionDelegate {
state: viewModel.buttonState,
action: {
viewModel.moveAction()
}, title: "move".localized
},
title: "move".localized
)
.padding(.horizontal, 18)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MoveSingleNFTViewModel: ObservableObject {
loadUserInfo()

let accountViewModel = MoveAccountsViewModel(selected: "") { _ in }
accountCount = accountViewModel.list.count
self.accountCount = accountViewModel.list.count
checkForInsufficientStorage()
}

Expand Down
2 changes: 0 additions & 2 deletions FRW/Modules/Wallet/SideMenu/SideMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,6 @@ class SideContainerViewModel: ObservableObject {
name: .insufficientStorageTransactionFailure, object: nil
)


self.isLinkedAccount = ChildAccountManager.shared.selectedChildAccount != nil
ChildAccountManager.shared.$selectedChildAccount
.receive(on: DispatchQueue.main)
Expand Down Expand Up @@ -608,7 +607,6 @@ struct SideContainerView: View {
showCloseButton: true,
buttonsLayout: .horizontal,
textAlignment: .center

)
}

Expand Down
4 changes: 1 addition & 3 deletions FRW/Services/Manager/WalletManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class WalletManager: ObservableObject {
@Published
var accountInfo: Flow.AccountInfo?


var accessibleManager: ChildAccountManager.AccessibleManager = .init()

var flowAccountKey: Flow.AccountKey?
Expand Down Expand Up @@ -824,8 +823,7 @@ extension WalletManager {

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

var isBalanceInsufficient: Bool {
Expand Down
1 change: 0 additions & 1 deletion FRW/UI/Component/StorageUsageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ struct StorageUsageView: View {
view.footerView = AnyView(footer)
return view
}

}

#Preview {
Expand Down

0 comments on commit c71e23c

Please sign in to comment.