Skip to content

Commit e6b75da

Browse files
committed
Update convert to dict
1 parent 0dcae2e commit e6b75da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dotnet/src/webdriver/VirtualAuth/Credential.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ public Dictionary<string, object> ToDictionary()
130130

131131
toReturn["credentialId"] = Base64UrlEncoder.Encode(this.id);
132132
toReturn["isResidentCredential"] = this.IsResidentCredential;
133-
toReturn["rpId"] = this.RpId;
133+
if (this.RpId is not null)
134+
{
135+
toReturn["rpId"] = this.RpId;
136+
}
134137
toReturn["privateKey"] = this.PrivateKey;
135138
toReturn["signCount"] = this.SignCount;
136139
if (this.userHandle is not null)

0 commit comments

Comments
 (0)