Skip to content

Commit ecbdedc

Browse files
committed
Remove await and opt wcpay_date_format_notice_dismissed
1 parent b82186b commit ecbdedc

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

client/overview/modal/connection-success/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const ConnectionSuccessModal = () => {
2323
setIsDismissed( true );
2424

2525
// Update the option to mark the modal as dismissed.
26-
await saveOption( 'wcpay_connection_success_modal_dismissed', true );
26+
saveOption( 'wcpay_connection_success_modal_dismissed', true );
2727
};
2828

2929
return (

client/overview/modal/progressive-onboarding-eligibility/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { __, sprintf } from '@wordpress/i18n';
66
import { addQueryArgs } from '@wordpress/url';
77
import { Button, Modal } from '@wordpress/components';
88
import { Icon, store, currencyDollar } from '@wordpress/icons';
9-
import { useDispatch } from '@wordpress/data';
109
import interpolateComponents from '@automattic/interpolate-components';
1110

1211
/**

client/overview/task-list/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const TaskList = ( { overviewTasksVisibility, tasks } ) => {
5252
dismissedTasks.splice( dismissedTodoTasks.indexOf( key ), 1 );
5353
setVisibleTasks( getVisibleTasks() );
5454

55-
await saveOption( optionName, updatedDismissedTasks );
55+
saveOption( optionName, updatedDismissedTasks );
5656
};
5757

5858
const dismissSelectedTask = async ( {
@@ -66,7 +66,7 @@ const TaskList = ( { overviewTasksVisibility, tasks } ) => {
6666
dismissedTasks.push( key );
6767
setVisibleTasks( getVisibleTasks() );
6868

69-
await saveOption( optionName, [ ...dismissedTasks ] );
69+
saveOption( optionName, [ ...dismissedTasks ] );
7070

7171
createNotice( 'success', noticeMessage, {
7272
actions: [
@@ -116,7 +116,7 @@ const TaskList = ( { overviewTasksVisibility, tasks } ) => {
116116
delete remindMeLaterTodoTasks[ key ];
117117
setVisibleTasks( getVisibleTasks() );
118118

119-
await saveOption(
119+
saveOption(
120120
'woocommerce_remind_me_later_todo_tasks',
121121
updatedRemindMeLaterTasks
122122
);

client/plugins-page/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const PluginsPage = () => {
3939
const currentDate = new Date();
4040

4141
// Update modal dismissed option.
42-
await saveOption( 'wcpay_exit_survey_last_shown', currentDate );
42+
saveOption( 'wcpay_exit_survey_last_shown', currentDate );
4343

4444
window.wcpayPluginsSettings.exitSurveyLastShown = currentDate;
4545

includes/admin/class-wc-rest-payments-settings-option-controller.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class WC_REST_Payments_Settings_Option_Controller extends WC_Payments_REST_Contr
3030
'wcpay_duplicate_payment_method_notices_dismissed',
3131
'wcpay_exit_survey_dismissed',
3232
'wcpay_instant_deposit_notice_dismissed',
33-
'wcpay_date_format_notice_dismissed',
3433
];
3534

3635
/**

0 commit comments

Comments
 (0)