|
@@ -254,12 +254,13 @@ const FormComponent: FC<Props> = (props) => {
|
|
|
}
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
- if (error.data.code === 1017) {
|
|
|
+ console.log(`🚀🚀🚀🚀🚀-> in index.tsx on 257`, error);
|
|
|
+ if (error.data?.code === 1017) {
|
|
|
sessionStorage.removeItem("shareId");
|
|
|
}
|
|
|
|
|
|
Toast.show({
|
|
|
- content: t(`code.${error.data.code}`),
|
|
|
+ content: t(`code.${error.data?.code ?? 500}`),
|
|
|
});
|
|
|
});
|
|
|
} else {
|