Merge branch 'release/2025-03-28' into feature/IO-2885-IntelliPay-App-Postback-Support

This commit is contained in:
Dave Richer
2025-04-02 11:50:42 -04:00
2 changed files with 24 additions and 20 deletions

View File

@@ -10,6 +10,7 @@ import client from "../utils/GraphQLClient";
import App from "./App"; import App from "./App";
import * as Sentry from "@sentry/react"; import * as Sentry from "@sentry/react";
import themeProvider from "./themeProvider"; import themeProvider from "./themeProvider";
import { CookiesProvider } from "react-cookie";
// Base Split configuration // Base Split configuration
const config = { const config = {
@@ -38,6 +39,7 @@ function AppContainer() {
const { t } = useTranslation(); const { t } = useTranslation();
return ( return (
<CookiesProvider>
<ApolloProvider client={client}> <ApolloProvider client={client}>
<ConfigProvider <ConfigProvider
input={{ autoComplete: "new-password" }} input={{ autoComplete: "new-password" }}
@@ -58,6 +60,7 @@ function AppContainer() {
</SplitFactoryProvider> </SplitFactoryProvider>
</ConfigProvider> </ConfigProvider>
</ApolloProvider> </ApolloProvider>
</CookiesProvider>
); );
} }

View File

@@ -340,6 +340,7 @@ export function* SetAuthLevelFromShopDetails({ payload }) {
args: [], args: [],
imex: () => { imex: () => {
window.$crisp.push(["set", "user:company", [payload.shopname]]); window.$crisp.push(["set", "user:company", [payload.shopname]]);
window.$crisp.push(["set", "session:segments", [[`region:${payload.region_config}`]]]);
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]]);
} }