Skip to content

Commit f9c6651

Browse files
committed
map boolean to string for the request parser to catch up
1 parent 1b92419 commit f9c6651

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

client/checkout/api/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ export default class WCPayAPI {
227227
getConfig( 'ajaxUrl' );
228228

229229
const isChangingPayment = getConfig( 'isChangingPayment' );
230-
console.log(
231-
'Config source isChangingPayment:',
232-
isChangingPayment
233-
);
234230

235231
const ajaxCall = this.request( ajaxUrl, {
236232
action: 'update_order_status',
@@ -242,7 +238,9 @@ export default class WCPayAPI {
242238
should_save_payment_method: shouldSavePaymentMethod
243239
? 'true'
244240
: 'false',
245-
is_changing_payment: isChangingPayment,
241+
is_changing_payment: isChangingPayment
242+
? 'true'
243+
: 'false',
246244
} );
247245

248246
return [ ajaxCall, result.error ];

0 commit comments

Comments
 (0)