Key match warning search on first appear

This commit is contained in:
Garth Vander Houwen 2024-08-14 21:36:31 -07:00
parent 197b567db0
commit 5c8eea9ea8
3 changed files with 3 additions and 3 deletions

View file

@ -225,7 +225,7 @@ struct UserList: View {
.onChange(of: maxDistance) { _ in
searchUserList()
}
.onAppear {
.onFirstAppear {
searchUserList()
}
.safeAreaInset(edge: .bottom, alignment: .trailing) {

View file

@ -45,7 +45,7 @@ struct NodeDetail: View {
}
Section("Node") {
if let user = node.user {
if user.keyMatch {
if !user.keyMatch {
Label {
VStack(alignment: .leading) {
Text("Public Key Mismatch")

View file

@ -337,7 +337,7 @@ struct NodeList: View {
self.selectedNode = nil
}
}
.onAppear {
.onFirstAppear {
Task {
await searchNodeList()
}