From 5ded51db470865b24f8a62f2a91789c46ed7e023 Mon Sep 17 00:00:00 2001 From: valentinkolb Date: Tue, 14 May 2024 23:56:48 +0200 Subject: [PATCH] feat(PocketBaseErrorAlert): made error msg clearer --- src/lib/pocketbase.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/pocketbase.tsx b/src/lib/pocketbase.tsx index 1bc7095..de86dd5 100644 --- a/src/lib/pocketbase.tsx +++ b/src/lib/pocketbase.tsx @@ -35,7 +35,7 @@ export const PocketBaseErrorAlert = ({error}: { error?: Error | null }) => { {Object.keys(error.response.data).map((key, index) => ( - {error.response.data[key].message} + {key}: {error.response.data[key].message} ))}