Skip to content

Commit

Permalink
Disabling Save button when blockchain_id field is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
TimuREC committed Jul 29, 2021
1 parent 2eb5a6f commit f9aa579
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions submodules/WalletUI/Sources/WalletConfgurationScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,10 @@ private struct WalletConfigurationScreenState: Equatable {
blockchainConfiguration = self.configuration.testNet
}

// if self.configuration.testNet.customId == "mainnet" {
// return true
// }
if let id = self.configuration.testNet.customId,
id.isEmpty {
return true
}

switch blockchainConfiguration.source {
case .url:
Expand Down

0 comments on commit f9aa579

Please sign in to comment.