mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🎨 Small code cleanup
This commit is contained in:
parent
3fa823ee02
commit
454e7c1a6d
2 changed files with 14 additions and 60 deletions
|
@ -101,11 +101,9 @@ export const setClientSecret = ( clientSecret ) => ( {
|
|||
* @return {Action} The action.
|
||||
*/
|
||||
export const persist = function* () {
|
||||
yield setIsBusy( true );
|
||||
yield {
|
||||
type: ACTION_TYPES.DO_PERSIST_DATA,
|
||||
};
|
||||
yield setIsBusy( false );
|
||||
const data = yield select( STORE_NAME ).persistentData();
|
||||
|
||||
yield { type: ACTION_TYPES.DO_PERSIST_DATA, data };
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue