Pārlūkot izejas kodu

fix: error message null

GyDi 2 gadi atpakaļ
vecāks
revīzija
fb653ff99d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/components/profile/profile-viewer.tsx

+ 1 - 1
src/components/profile/profile-viewer.tsx

@@ -115,7 +115,7 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
           fileDataRef.current = null;
           props.onChange();
         } catch (err: any) {
-          Notice.error(err.message);
+          Notice.error(err.message || err.toString());
         }
       })
     );