{isEmailAllowed ? 'Loading Email Groups...' : 'Email is disallowed'}
@@ -293,7 +292,7 @@ export default class ManageEmailGroups extends React.Component {
this.renderEmailGroups({ values, arrayHelpers })
)
}
- />
+
{this.hasEmailGroupsToProcess(values) ? (
@@ -316,7 +315,7 @@ export default class ManageEmailGroups extends React.Component {
)}
- />
+
) : null;
}
}
diff --git a/public/pages/Destinations/containers/CreateDestination/ManageEmailGroups/__snapshots__/ManageEmailGroups.test.js.snap b/public/pages/Destinations/containers/CreateDestination/ManageEmailGroups/__snapshots__/ManageEmailGroups.test.js.snap
index ccd3af84..3cbc5841 100644
--- a/public/pages/Destinations/containers/CreateDestination/ManageEmailGroups/__snapshots__/ManageEmailGroups.test.js.snap
+++ b/public/pages/Destinations/containers/CreateDestination/ManageEmailGroups/__snapshots__/ManageEmailGroups.test.js.snap
@@ -21,7 +21,6 @@ exports[`ManageEmailGroups renders when email is disallowed 1`] = `
@@ -556,7 +555,6 @@ exports[`ManageEmailGroups renders when email is disallowed 1`] = `
>
@@ -1245,7 +1241,6 @@ exports[`ManageEmailGroups renders when visible 1`] = `
>
onClickSave());
}}
validateOnChange={false}
- render={({ values, handleSubmit, isSubmitting }) => (
+ >
+ {({ values, handleSubmit, isSubmitting }) => (
-
+
+ {(arrayHelpers) =>
!isEmailAllowed || loadingSenders ? (
{isEmailAllowed ? 'Loading Senders...' : 'Email is disallowed'}
@@ -281,7 +280,7 @@ export default class ManageSenders extends React.Component {
this.renderSenders({ values, arrayHelpers })
)
}
- />
+
{this.hasSendersToProcess(values) ? (
@@ -304,7 +303,7 @@ export default class ManageSenders extends React.Component {
)}
- />
+
) : null;
}
}
diff --git a/public/pages/Destinations/containers/CreateDestination/ManageSenders/__snapshots__/ManageSenders.test.js.snap b/public/pages/Destinations/containers/CreateDestination/ManageSenders/__snapshots__/ManageSenders.test.js.snap
index 2ee04789..a5ceaa4c 100644
--- a/public/pages/Destinations/containers/CreateDestination/ManageSenders/__snapshots__/ManageSenders.test.js.snap
+++ b/public/pages/Destinations/containers/CreateDestination/ManageSenders/__snapshots__/ManageSenders.test.js.snap
@@ -21,7 +21,6 @@ exports[`ManageSenders renders when email is disallowed 1`] = `
@@ -556,7 +555,6 @@ exports[`ManageSenders renders when email is disallowed 1`] = `
>
@@ -1245,7 +1241,6 @@ exports[`ManageSenders renders when visible 1`] = `
>