try to fix undefined issue

This commit is contained in:
an-lee
2024-03-28 16:40:47 +08:00
parent da567f44c2
commit bdc3865b9d

View File

@@ -217,7 +217,7 @@ export const MediaCurrentRecording = (props: { height?: number }) => {
);
})
.catch((err) => {
toast.error(err.message);
if (err) toast.error(err.message);
});
};