Skip to content

Commit 32c4aa0

Browse files
committed
Check escapedIssuer instead of Issuer
1 parent 54c4736 commit 32c4aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

QRCoder/PayloadGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,11 +2028,11 @@ private void ProcessCommonFields(StringBuilder sb)
20282028
throw new Exception("Label must not have a ':'");
20292029
}
20302030

2031-
if (Label != null && Issuer != null)
2031+
if (Label != null && escapedIssuer != null)
20322032
{
20332033
label = escapedIssuer + ":" + Label;
20342034
}
2035-
else if (Issuer != null)
2035+
else if (escapedIssuer != null)
20362036
{
20372037
label = escapedIssuer;
20382038
}

0 commit comments

Comments
 (0)