Skip to content

Commit a7b011b

Browse files
refactor: check user status condition
1 parent fb58810 commit a7b011b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/src/dashboard/parts/connected/OptimizationStatus.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { closeSmall, check } from '@wordpress/icons';
33

44
const OptimizationStatus = ({ settings }) => {
55
const userStatus = optimoleDashboardApp.user_status ? optimoleDashboardApp.user_status : 'inactive';
6-
const lazyloadEnabled = 'enabled' === settings?.lazyload && 'inactive' !== userStatus;
7-
const imageHandlingEnabled = 'enabled' === settings?.image_replacer && 'inactive' !== userStatus;
6+
const lazyloadEnabled = 'enabled' === settings?.lazyload && userStatus === 'active';
7+
const imageHandlingEnabled = 'enabled' === settings?.image_replacer && userStatus === 'active';
88
const statuses = [
99
{
1010
active: imageHandlingEnabled,

0 commit comments

Comments
 (0)