We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01d007d commit d645628Copy full SHA for d645628
1 file changed
assets/src/dashboard/parts/connected/dashboard/index.js
@@ -69,8 +69,6 @@ const settingsTab = {
69
advance: 2
70
};
71
72
-const { getUserData } = select( 'optimole' );
73
-const user = getUserData();
74
75
const navigate = ( tabId ) => {
76
const links = window.optimoleDashboardApp.submenu_links;
@@ -303,8 +301,7 @@ const Dashboard = () => {
303
301
{ metric.description }
304
302
</div>
305
306
-
307
- { 'free' !== user.plan && metric.hasButton && (
+ { 'free' !== userData.plan && metric.hasButton && (
308
<Button
309
variant="secondary"
310
size="small"
@@ -317,7 +314,6 @@ const Dashboard = () => {
317
314
) }
318
315
</Button>
319
316
320
321
322
323
);
0 commit comments