From edb32e704328919f67b7289530fd0453ce354eab Mon Sep 17 00:00:00 2001 From: Jason Brown <86845131+jasonabrown@users.noreply.github.com> Date: Fri, 26 Apr 2024 13:16:17 -0700 Subject: [PATCH] Updated naming convention to onLoadCallback this name leaves room for a JS SDK supported onLoad event in the future --- src/PSClickWrap.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PSClickWrap.js b/src/PSClickWrap.js index 6dc02b6..832122e 100644 --- a/src/PSClickWrap.js +++ b/src/PSClickWrap.js @@ -220,7 +220,7 @@ class PSClickWrap extends React.Component { signerIdSelector, snapshotLocation, allowDisagreed, - loadEventCallback, + onLoadCallback, } = this.props; const options = { ...(allowDisagreed !== undefined && { allow_disagreed: allowDisagreed }), @@ -256,7 +256,7 @@ class PSClickWrap extends React.Component { if (!isDynamic) group.render(); this.registerEventListeners(key); } - loadEventCallback && loadEventCallback(err, group); + onLoadCallback && onLoadCallback(err, group); }; if (customData) { @@ -336,7 +336,7 @@ PSClickWrap.propTypes = { (props) => props.hasOwnProperty('onInvalid'), PSClickWrap.MUST_SET_ALLOW_DISAGREED, ), - loadEventCallback: PropTypes.func, + onLoadCallback: PropTypes.func, debug: PropTypes.bool, onAll: PropTypes.func, onSent: PropTypes.func,