Skip to content

Commit 0fdc7c4

Browse files
sipsorceryCopilot
andauthored
Improve the display of SCAN and BIC account identifiers. (#606)
* Improve the display of SCAN and BIC account identifiers. * Update src/NoFrixion.MoneyMoov/Models/Account/AccountIdentifier.cs Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 0100217 commit 0fdc7c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NoFrixion.MoneyMoov/Models/Account/AccountIdentifier.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ public string BitcoinAddress
175175
"No identifier.";
176176

177177
public string DisplayScanSummary =>
178-
Currency == CurrencyTypeEnum.GBP && !string.IsNullOrEmpty(SortCode) && !string.IsNullOrEmpty(AccountNumber) && SortCode.Length == GBP_SORT_CODE_LENGTH
179-
? $"{SortCode[..2]}-{SortCode.Substring(2, 2)}-{SortCode.Substring(4, 2)} {AccountNumber}"
180-
: $"{SortCode} {AccountNumber}";
178+
!string.IsNullOrEmpty(SortCode) && !string.IsNullOrEmpty(AccountNumber) && SortCode.Length == GBP_SORT_CODE_LENGTH
179+
? $"{SortCode[..2]}-{SortCode[2..4]}-{SortCode[4..6]} / {AccountNumber}"
180+
: $"{SortCode} / {AccountNumber}";
181181

182-
public string DisplayBicSummary => $"{BIC} {AccountNumber}";
182+
public string DisplayBicSummary => $"{BIC} / {AccountNumber}";
183183

184184
public bool IsSameDestination(AccountIdentifier other)
185185
{

0 commit comments

Comments
 (0)