Skip to content

Commit

Permalink
Updated naming convention to onLoadCallback
Browse files Browse the repository at this point in the history
this name leaves room for a JS SDK supported onLoad event in the future
  • Loading branch information
jasonabrown authored Apr 26, 2024
1 parent cd3bc30 commit edb32e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PSClickWrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class PSClickWrap extends React.Component {
signerIdSelector,
snapshotLocation,
allowDisagreed,
loadEventCallback,
onLoadCallback,
} = this.props;
const options = {
...(allowDisagreed !== undefined && { allow_disagreed: allowDisagreed }),
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit edb32e7

Please sign in to comment.