Web: Client: Sdk: Fixed setConfig

This commit is contained in:
Ilya Oleshko 2023-06-22 12:51:21 +03:00
parent 700c1947f5
commit 5bef2ce668
2 changed files with 4 additions and 1 deletions

View File

@ -427,7 +427,7 @@ class PureHome extends React.Component {
try {
const requests = await Promise.all([
setFrameConfig(data),
updateProfileCulture(user.id, data.locale),
updateProfileCulture(user?.id, data.locale),
]);
res = requests[0];
} catch (e) {

View File

@ -421,6 +421,7 @@ export function checkIsSSR() {
}
export const frameCallbackData = (methodReturnData: any) => {
console.log("frameCallbackData", methodReturnData);
window.parent.postMessage(
JSON.stringify({
type: "onMethodReturn",
@ -431,6 +432,7 @@ export const frameCallbackData = (methodReturnData: any) => {
};
export const frameCallEvent = (eventReturnData: any) => {
console.log("frameCallEvent", eventReturnData);
window.parent.postMessage(
JSON.stringify({
type: "onEventReturn",
@ -441,6 +443,7 @@ export const frameCallEvent = (eventReturnData: any) => {
};
export const frameCallCommand = (commandName: string, commandData: any) => {
console.log("frameCallCommand", commandName, commandData);
window.parent.postMessage(
JSON.stringify({
type: "onCallCommand",