mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
♻️ Rename a function
This commit is contained in:
parent
9910164044
commit
c72c97f821
1 changed files with 6 additions and 5 deletions
|
@ -27,9 +27,10 @@ class AxoManager {
|
|||
ppcpConfig = null;
|
||||
$ = null;
|
||||
|
||||
fastlane = null;
|
||||
|
||||
initialized = false;
|
||||
hideGatewaySelection = false;
|
||||
fastlane = null;
|
||||
phoneNumber = null;
|
||||
|
||||
/**
|
||||
|
@ -497,7 +498,7 @@ class AxoManager {
|
|||
this.initPlacements();
|
||||
this.initFastlane();
|
||||
this.setStatus( 'active', true );
|
||||
this.setPhoneFromWoo();
|
||||
this.readPhoneFromWoo();
|
||||
|
||||
log( `Attempt on activation - emailInput: ${ this.emailInput.value }` );
|
||||
log(
|
||||
|
@ -759,7 +760,7 @@ class AxoManager {
|
|||
*
|
||||
* @return {boolean} True, if the internal phone number was updated.
|
||||
*/
|
||||
setPhoneFromWoo() {
|
||||
readPhoneFromWoo() {
|
||||
if ( ! this.phoneInput ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -818,7 +819,7 @@ class AxoManager {
|
|||
this.data.email = this.emailInput.value;
|
||||
this.billingView.setData( this.data );
|
||||
|
||||
this.setPhoneFromWoo();
|
||||
this.readPhoneFromWoo();
|
||||
|
||||
if ( ! this.fastlane.identity ) {
|
||||
log( 'Not initialized.' );
|
||||
|
@ -851,7 +852,7 @@ class AxoManager {
|
|||
* @return {Promise<void>}
|
||||
*/
|
||||
async onChangePhone() {
|
||||
const hasChanged = this.setPhoneFromWoo();
|
||||
const hasChanged = this.readPhoneFromWoo();
|
||||
|
||||
if ( hasChanged && this.status.active ) {
|
||||
await this.refreshFastlaneComponent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue