Remove authentication for copying npub

Changelog-Fixed: Remove authentication for copying npub
Closes: #778
This commit is contained in:
Swift authored and William Casarin committed 2023-03-20 08:31:16 -06:00
1 parent 98685645d3
commit 44a59e8d57
1 file changed
+10 -4
+10 -4
View File
@@ -72,12 +72,18 @@ struct ConfigView: View {
self.pubkey_copied = is_pk
generator.impactOccurred()
}
if has_authenticated_locally {
if is_pk {
// When trying to copy npub
copyKey()
} else {
authenticateLocally { success in
if success {
copyKey()
// When trying to copy nsec
if has_authenticated_locally {
copyKey()
} else {
authenticateLocally { success in
if success {
copyKey()
}
}
}
}