Skip to content

Commit d645628

Browse files
chore: copilot suggestions
1 parent 01d007d commit d645628

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • assets/src/dashboard/parts/connected/dashboard

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ const settingsTab = {
6969
advance: 2
7070
};
7171

72-
const { getUserData } = select( 'optimole' );
73-
const user = getUserData();
7472

7573
const navigate = ( tabId ) => {
7674
const links = window.optimoleDashboardApp.submenu_links;
@@ -303,8 +301,7 @@ const Dashboard = () => {
303301
{ metric.description }
304302
</div>
305303

306-
307-
{ 'free' !== user.plan && metric.hasButton && (
304+
{ 'free' !== userData.plan && metric.hasButton && (
308305
<Button
309306
variant="secondary"
310307
size="small"
@@ -317,7 +314,6 @@ const Dashboard = () => {
317314
) }
318315
</Button>
319316
) }
320-
321317
</div>
322318
</div>
323319
);

0 commit comments

Comments
 (0)