From 382ca788ad7b2ae1a82a4824613da03f9f9f5689 Mon Sep 17 00:00:00 2001 From: Julien Genestoux Date: Thu, 18 Apr 2024 15:49:57 -0400 Subject: [PATCH] feat(unlock-app): displaying paywall config as debug --- unlock-app/src/components/interface/checkout/Connected.tsx | 4 +++- unlock-app/src/components/interface/checkout/main/index.tsx | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/unlock-app/src/components/interface/checkout/Connected.tsx b/unlock-app/src/components/interface/checkout/Connected.tsx index 50e4ec4ccfb..46daec5dd26 100644 --- a/unlock-app/src/components/interface/checkout/Connected.tsx +++ b/unlock-app/src/components/interface/checkout/Connected.tsx @@ -209,7 +209,9 @@ export function Connected({ useEffect(() => { if (!account) { console.debug('Not connected') - } else console.debug(`Connected as ${account}`) + } else { + console.debug(`Connected as ${account}`) + } }, [account]) const signToSignIn = async () => { diff --git a/unlock-app/src/components/interface/checkout/main/index.tsx b/unlock-app/src/components/interface/checkout/main/index.tsx index aff5355f2eb..3aeb21c8de9 100644 --- a/unlock-app/src/components/interface/checkout/main/index.tsx +++ b/unlock-app/src/components/interface/checkout/main/index.tsx @@ -51,6 +51,10 @@ export function Checkout({ state.context.paywallConfig ) + useEffect(() => { + console.debug('Unlock paywall config', paywallConfig) + }, [paywallConfig]) + useEffect(() => { if (paywallConfigChanged) { checkoutService.send({