Skip to content

Commit

Permalink
ChainListSettingsScene fixed var -> let
Browse files Browse the repository at this point in the history
AddTokenViewModel added value to MARK
  • Loading branch information
gemdev111 committed Jun 10, 2024
1 parent 8943eae commit 677feef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Gem/Assets/ViewModels/AddTokenViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ class AddTokenViewModel: ObservableObject {
self.address = address
self.chain = chain
}

var title: String {
Localized.Wallet.AddToken.title
}

var defaultChain: Chain? {
chains.first
}

var chains: [Chain] {
AssetConfiguration.supportedChainsWithTokens
.asSet()
Expand All @@ -45,7 +45,7 @@ class AddTokenViewModel: ObservableObject {
}
}

// MARK: -
// MARK: - State Logic

extension AddTokenViewModel {
func fetch(tokenId: String) async throws {
Expand Down
2 changes: 1 addition & 1 deletion Gem/Settings/Scenes/ChainListSettingsScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Style
struct ChainListSettingsScene: View {
@Environment(\.nodeService) private var nodeService

var model = ChainListSettingsViewModel()
let model = ChainListSettingsViewModel()

var body: some View {
SearchableListView(
Expand Down

0 comments on commit 677feef

Please sign in to comment.