Fix one-time TOTP copy

This commit is contained in:
RandyTheSilly committed 2025-06-30 22:59:12 -04:00
1 parent 591624eff6
commit 1a66a30bc1
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ func CopyArgument(targetLocation string, field int) error {
if len(decryptedEntry) > field {
// ensure field is not empty
if decryptedEntry[field] == "" {
if field > -1 && decryptedEntry[field] == "" {
return errors.New("field is empty")
}