diff --git a/apps/creator/src/cere-wallet/wallet-context.tsx b/apps/creator/src/cere-wallet/wallet-context.tsx index 9c0a441..dd05db5 100644 --- a/apps/creator/src/cere-wallet/wallet-context.tsx +++ b/apps/creator/src/cere-wallet/wallet-context.tsx @@ -17,6 +17,7 @@ export const useCereWallet = () => { export const CereWalletProvider = ({ children }: PropsWithChildren>) => { const { initDataRaw } = useLaunchParams() || {}; + console.log('initData: ', initDataRaw); const wallet = useMemo(() => { const wallet = new EmbedWallet({ @@ -36,6 +37,10 @@ export const CereWalletProvider = ({ children }: PropsWithChildren { console.log('Cere Wallet details: ', user); + const walletIframe = document.getElementById('torusIframe'); + if (walletIframe) { + walletIframe.style.height = '0px'; + } }); }); }); diff --git a/apps/viewer/src/cere-wallet/wallet-context.tsx b/apps/viewer/src/cere-wallet/wallet-context.tsx index 112ce2b..c19884a 100644 --- a/apps/viewer/src/cere-wallet/wallet-context.tsx +++ b/apps/viewer/src/cere-wallet/wallet-context.tsx @@ -17,6 +17,7 @@ export const useCereWallet = () => { export const CereWalletProvider = ({ children }: PropsWithChildren>) => { const { initDataRaw } = useLaunchParams() || {}; + console.log('initData: ', initDataRaw); const wallet = useMemo(() => { const wallet = new EmbedWallet({ @@ -36,6 +37,10 @@ export const CereWalletProvider = ({ children }: PropsWithChildren { console.log('Cere Wallet details: ', user); + const walletIframe = document.getElementById('torusIframe'); + if (walletIframe) { + walletIframe.style.height = '0px'; + } }); }); });