@@ -8,18 +8,6 @@
|
|||||||
<meta name="description" content="Rome Online" />
|
<meta name="description" content="Rome Online" />
|
||||||
<!-- <link rel="apple-touch-icon" href="logo192.png" /> -->
|
<!-- <link rel="apple-touch-icon" href="logo192.png" /> -->
|
||||||
<link rel="apple-touch-icon" href="logo192.png" />
|
<link rel="apple-touch-icon" href="logo192.png" />
|
||||||
<script type="text/javascript">
|
|
||||||
window.$crisp = [];
|
|
||||||
window.CRISP_WEBSITE_ID = "36724f62-2eb0-4b29-9cdd-9905fb99913e";
|
|
||||||
(function () {
|
|
||||||
d = document;
|
|
||||||
s = d.createElement("script");
|
|
||||||
s.src = "https://client.crisp.chat/l.js";
|
|
||||||
s.async = 1;
|
|
||||||
d.getElementsByTagName("head")[0].appendChild(s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
!(function () {
|
!(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|||||||
@@ -40,22 +40,22 @@ class ErrorBoundary extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleErrorSubmit = () => {
|
handleErrorSubmit = () => {
|
||||||
window.$crisp.push([
|
// window.$crisp.push([
|
||||||
"do",
|
// "do",
|
||||||
"message:send",
|
// "message:send",
|
||||||
[
|
// [
|
||||||
"text",
|
// "text",
|
||||||
`I hit the following error: \n\n
|
// `I hit the following error: \n\n
|
||||||
${this.state.error.message}\n\n
|
// ${this.state.error.message}\n\n
|
||||||
${this.state.error.stack}\n\n
|
// ${this.state.error.stack}\n\n
|
||||||
URL:${window.location} as ${this.props.currentUser.email} for ${
|
// URL:${window.location} as ${this.props.currentUser.email} for ${
|
||||||
this.props.bodyshop && this.props.bodyshop.name
|
// this.props.bodyshop && this.props.bodyshop.name
|
||||||
}
|
// }
|
||||||
`,
|
// `,
|
||||||
],
|
// ],
|
||||||
]);
|
// ]);
|
||||||
|
|
||||||
window.$crisp.push(["do", "chat:open"]);
|
// window.$crisp.push(["do", "chat:open"]);
|
||||||
// const errorDescription = `**Please add relevant details about what you were doing before you encountered this issue**
|
// const errorDescription = `**Please add relevant details about what you were doing before you encountered this issue**
|
||||||
|
|
||||||
// ----
|
// ----
|
||||||
|
|||||||
@@ -293,12 +293,6 @@ export function ShopInfoGeneral({ form, bodyshop }) {
|
|||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.federal_tax_id")}
|
label={t("bodyshop.fields.federal_tax_id")}
|
||||||
name="federal_tax_id"
|
name="federal_tax_id"
|
||||||
rules={[
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
//message: t("general.validation.required"),
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
>
|
>
|
||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|||||||
@@ -197,13 +197,13 @@ export function* signInSuccessSaga({ payload }) {
|
|||||||
LogRocket.identify(payload.email);
|
LogRocket.identify(payload.email);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
window.$crisp.push([
|
// window.$crisp.push([
|
||||||
"set",
|
// "set",
|
||||||
"user:nickname",
|
// "user:nickname",
|
||||||
[payload.displayName || payload.email],
|
// [payload.displayName || payload.email],
|
||||||
]);
|
// ]);
|
||||||
|
|
||||||
window.$crisp.push(["set", "session:segments", [["rome-user"]]]);
|
// window.$crisp.push(["set", "session:segments", [["rome-user"]]]);
|
||||||
|
|
||||||
Sentry.setUser({
|
Sentry.setUser({
|
||||||
email: payload.email,
|
email: payload.email,
|
||||||
@@ -288,10 +288,10 @@ export function* SetAuthLevelFromShopDetails({ payload }) {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
window.$crisp.push(["set", "user:company", [payload.shopname]]);
|
// window.$crisp.push(["set", "user:company", [payload.shopname]]);
|
||||||
if (authRecord[0] && authRecord[0].user.validemail) {
|
// if (authRecord[0] && authRecord[0].user.validemail) {
|
||||||
window.$crisp.push(["set", "user:email", [authRecord[0].user.email]]);
|
// window.$crisp.push(["set", "user:email", [authRecord[0].user.email]]);
|
||||||
}
|
// }
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Couldnt find $crisp.");
|
console.error("Couldnt find $crisp.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user