Skip to content

Commit

Permalink
fix namings
Browse files Browse the repository at this point in the history
  • Loading branch information
ramakser committed Mar 6, 2024
1 parent 9fac85b commit 1e94dc1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct TokenLookupView: View {
@State private var error: TokenError? = nil
@State private var isLoading = false

@FocusState private var isUsernameFocused: Bool
@FocusState private var isIndexFieldFocused: Bool

var tokensPublisher: AnyPublisher<[CIS2Token], TokenError> {
tokenIndexPublisher
Expand Down Expand Up @@ -74,7 +74,7 @@ struct TokenLookupView: View {
.padding(4)
Text("Enter a contract index to look for tokens.")
TextField("Contract index", text: $contractIndex)
.focused($isUsernameFocused)
.focused($isIndexFieldFocused)
.textInputAutocapitalization(.never)
.textFieldStyle(.roundedBorder)
.keyboardType(.numberPad)
Expand Down Expand Up @@ -119,7 +119,7 @@ struct TokenLookupView: View {
Alert(title: Text("Error"), message: Text(error.errorMessage), dismissButton: .default(Text("OK")))
}
.onAppear(perform: {
isUsernameFocused = true
isIndexFieldFocused = true
})
}
}

0 comments on commit 1e94dc1

Please sign in to comment.