From f366a2fc81cf577b54cf026d78de4f28c06c4c26 Mon Sep 17 00:00:00 2001 From: ctapang Date: Wed, 6 Dec 2023 09:16:18 -0800 Subject: [PATCH] Remove onLoad attr from anchor --- src/commerce.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/commerce.tsx b/src/commerce.tsx index 2a4d514..06d6d34 100644 --- a/src/commerce.tsx +++ b/src/commerce.tsx @@ -76,7 +76,6 @@ export class Commerce extends Component { )} {src !== null && ( { this.handleDivLoaded() }} className="coinbase-commerce" ref={src} style={{ border: 0 }} @@ -177,9 +176,4 @@ export class Commerce extends Component { break } } - - private handleDivLoaded (): void { - this.setState({ loading: false }) - this.props.onLoad?.() - } }