diff --git a/packages/polymath-issuer/src/pages/providers/ApplyForm.js b/packages/polymath-issuer/src/pages/providers/ApplyForm.js index 8f1043469..ae939059c 100644 --- a/packages/polymath-issuer/src/pages/providers/ApplyForm.js +++ b/packages/polymath-issuer/src/pages/providers/ApplyForm.js @@ -10,7 +10,7 @@ import { TextArea, } from '@polymathnetwork/ui'; import validator from '@polymathnetwork/ui/validator'; - +import { MAINNET_NETWORK_ID } from '@polymathnetwork/shared/constants'; import { applyProviders } from '../../actions/providers'; const requiredMessage = 'Required.'; @@ -65,7 +65,8 @@ const linkTooltip = (title: string) => ( ); -export const ApplyFormComponent = ({ handleSubmit, onClose }) => { +export const ApplyFormComponent = props => { + const { handleSubmit, onClose, networkId } = props; return (
@@ -145,19 +146,39 @@ export const ApplyFormComponent = ({ handleSubmit, onClose }) => {

-

- When you click submit, an email which contains the information entered - on that screen will be sent to the Advisory firm(s) you have selected. - None of this information is stored on Polymath servers, only your - browser's cache. To clear this information, simply clear your - browser's cache. -

+ {networkId === MAINNET_NETWORK_ID ? ( +

+ When you click submit, an email which contains the information entered + on that screen will be sent to the Advisory firm(s) you have selected. + None of this information is stored on Polymath servers, only your + browser's cache. To clear this information, simply clear your + browser's cache. +

+ ) : ( +

+ + + You are using Token Studio in a testnet environment. When you + click submit, an email WILL NOT be sent to the providers you have + selected. To send an email to the selected providers, please log + into Token Studio with mainnet. +
+ None of this information is stored on Polymath servers, only your + browser's cache. To clear this information, simply clear your + browser's cache. +
+
+

+ )}
); }; -const mapStateToProps = ({ providers: { application } }) => ({ application }); +const mapStateToProps = ({ + providers: { application }, + network: { id: networkId }, +}) => ({ application, networkId }); const formikEnhancer = withFormik({ validationSchema: formSchema,