From 25fe16da0b71d9b62d0b069da064256d88a29827 Mon Sep 17 00:00:00 2001 From: iMac7 Date: Tue, 17 Dec 2024 22:35:16 +0300 Subject: [PATCH] pass test? --- unlock-app/src/hooks/useCheckoutCommunication.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/unlock-app/src/hooks/useCheckoutCommunication.ts b/unlock-app/src/hooks/useCheckoutCommunication.ts index c95a401de0b..18dd5c74bfb 100644 --- a/unlock-app/src/hooks/useCheckoutCommunication.ts +++ b/unlock-app/src/hooks/useCheckoutCommunication.ts @@ -5,7 +5,7 @@ import { OAuthConfig } from '~/unlockTypes' import { useProvider } from './useProvider' import { isInIframe } from '~/utils/iframe' import { postToWebhook } from '~/components/interface/checkout/main/checkoutHookUtils' -import { useAuthenticate } from './useAuthenticate' +// import { useAuthenticate } from './useAuthenticate' export interface UserInfo { address?: string @@ -115,7 +115,7 @@ export const resolveOnEvent = (name: string) => { // directly. export const useCheckoutCommunication = () => { const { setProvider } = useProvider() - const { account } = useAuthenticate() + // const { account } = useAuthenticate() const [outgoingBuffer, setOutgoingBuffer] = useState([] as BufferedEvent[]) const [incomingBuffer, setIncomingBuffer] = useState([] as MethodCall[]) const [paywallConfig, setPaywallConfig] = useState< @@ -228,12 +228,12 @@ export const useCheckoutCommunication = () => { } setUser(info.address) pushOrEmit(CheckoutEvents.userInfo, info) - account && postToWebhook(info, paywallConfig, 'authenticated') + postToWebhook(info, paywallConfig, 'authenticated') } const emitMetadata = (metadata: any, paywallConfig?: any) => { pushOrEmit(CheckoutEvents.metadata, metadata) - account && postToWebhook(metadata, paywallConfig, 'metadata') + postToWebhook(metadata, paywallConfig, 'metadata') } const emitCloseModal = () => { @@ -242,7 +242,7 @@ export const useCheckoutCommunication = () => { const emitTransactionInfo = (info: TransactionInfo, paywallConfig?: any) => { pushOrEmit(CheckoutEvents.transactionInfo, info) - account && postToWebhook(info, paywallConfig, 'transactionSent') + postToWebhook(info, paywallConfig, 'transactionSent') } const emitMethodCall = (call: MethodCall) => {