Skip to content

Commit d4adfce

Browse files
committed
update code to be more readable
1 parent 80745af commit d4adfce

File tree

1 file changed

+2
-3
lines changed
  • projects/packages/forms/src/dashboard/components/layout

1 file changed

+2
-3
lines changed

projects/packages/forms/src/dashboard/components/layout/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const Layout = () => {
2929

3030
const enableIntegrationsTab = useConfigValue( 'isIntegrationsEnabled' );
3131
const hasFeedback = useConfigValue( 'hasFeedback' );
32+
const isLoadingConfig = enableIntegrationsTab === undefined;
3233

3334
const { currentStatus } = useSelect(
3435
select => ( {
@@ -52,7 +53,7 @@ const Layout = () => {
5253
name: 'responses',
5354
title: __( 'Responses', 'jetpack-forms' ),
5455
},
55-
...( enableIntegrationsTab !== false
56+
...( enableIntegrationsTab
5657
? [ { name: 'integrations', title: __( 'Integrations', 'jetpack-forms' ) } ]
5758
: [] ),
5859
{
@@ -100,8 +101,6 @@ const Layout = () => {
100101
[ navigate, location.search, isSm, getCurrentTab, hasFeedback ]
101102
);
102103

103-
const isLoadingConfig = hasFeedback === undefined;
104-
105104
return (
106105
<div className="jp-forms__layout">
107106
<div className="jp-forms__layout-header">

0 commit comments

Comments
 (0)