Cutting off lightning payment so receipt takes less space

This commit is contained in:
rockstardev 2024-05-07 13:39:11 -05:00 committed by nicolas.dorier
parent 7793c5e5df
commit d2a04db49f
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -218,9 +218,9 @@
@if (payment.Destination.Length > 69)
{
<span>
<span>@payment.Destination[..30]</span>
<span>@payment.Destination[..19]</span>
<span>...</span>
<span>@payment.Destination.Substring(payment.Destination.Length - 30, 30)</span>
<span>@payment.Destination.Substring(payment.Destination.Length - 20, 20)</span>
</span>
}
else