Explorar el Código

fix: error message null

GyDi hace 2 años
padre
commit
fb653ff99d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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());
         }
       })
     );