Solved double entry issue on order confirmation
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-16 13:47:03 +02:00
parent 6ca781759f
commit 31423ea48d
2 changed files with 10 additions and 4 deletions
@@ -29,10 +29,13 @@ public partial class PaymentFailed
User = authState!.User;
if (User?.Identity?.IsAuthenticated == false) Navigation.NavigateTo("/login");
}
if (string.IsNullOrWhiteSpace(PaymentReference)) return;
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (!firstRender) return;
long orderId = HashService.DecodeLongIdHash(PaymentReference).Value;
long orderId = HashService.DecodeLongIdHash(PaymentReference!).Value;
var customerEmail = User!.Claims.FirstOrDefault(c => c.Type == ClaimTypes.Email)!.Value!;