From 91c1ea1db4ba5a0ca49f0fd52738d9c28918a953 Mon Sep 17 00:00:00 2001 From: 8xMohab Date: Sun, 28 Jul 2024 10:04:07 +0300 Subject: [PATCH] updated the uploading toast error message title --- src/app/configure/upload/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/configure/upload/page.tsx b/src/app/configure/upload/page.tsx index 2e1721f..0a50c00 100644 --- a/src/app/configure/upload/page.tsx +++ b/src/app/configure/upload/page.tsx @@ -33,7 +33,7 @@ const Page = () => { setIsDragOver(false) toast({ - title: `${file.file.type} type is not supported.`, + title: `${file.file.type ? file.file.type : 'Your file '} type is not supported.`, description: "Please choose a PNG, JPG, or JPEG image instead.", variant: "destructive" })