From 12d6f4f3fdf4515e08656a96fe2e63a11e3fd2e3 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Tue, 24 Feb 2026 05:00:45 +0300 Subject: [PATCH] fix: show actual Supabase error details in P2P toast messages PostgrestError is not instanceof Error, so catch blocks were falling through to generic messages. Now extracts .message and .details from Supabase errors for better debugging. --- shared/lib/p2p-fiat.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/shared/lib/p2p-fiat.ts b/shared/lib/p2p-fiat.ts index 00c41afa..3f8ea583 100644 --- a/shared/lib/p2p-fiat.ts +++ b/shared/lib/p2p-fiat.ts @@ -470,7 +470,7 @@ export async function createFiatOffer(params: CreateOfferParams): Promise