fix(shareModal/index.tsx): improve error message by specifying whether it's an error sharing a component or a flow

This commit is contained in:
anovazzi1 2023-11-20 15:42:24 -03:00
commit 59da74baa9

View file

@ -90,7 +90,7 @@ export default function ShareModal({
},
(err) => {
setErrorData({
title: "Error sharing flow",
title: "Error sharing " + is_component ? "component" : "flow",
list: [err["response"]["data"]["detail"]],
});
}