Skip to content

Commit

Permalink
feat(unlock-app): displaying paywall config as debug
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Apr 18, 2024
1 parent 4c1b831 commit 382ca78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unlock-app/src/components/interface/checkout/Connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
4 changes: 4 additions & 0 deletions unlock-app/src/components/interface/checkout/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export function Checkout({
state.context.paywallConfig
)

useEffect(() => {
console.debug('Unlock paywall config', paywallConfig)
}, [paywallConfig])

useEffect(() => {
if (paywallConfigChanged) {
checkoutService.send({
Expand Down

0 comments on commit 382ca78

Please sign in to comment.