🎨 Small code cleanup

This commit is contained in:
Philipp Stracker 2024-11-21 17:42:48 +01:00
parent 3fa823ee02
commit 454e7c1a6d
No known key found for this signature in database
2 changed files with 14 additions and 60 deletions

View file

@ -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 };
};
/**