diff --git a/packages/yoroi-extension/app/components/buySell/BuySellDialog.js b/packages/yoroi-extension/app/components/buySell/BuySellDialog.js index 967adfe964..b4e9f24c84 100644 --- a/packages/yoroi-extension/app/components/buySell/BuySellDialog.js +++ b/packages/yoroi-extension/app/components/buySell/BuySellDialog.js @@ -21,6 +21,7 @@ import banxaPng from '../../assets/images/banxa.png'; import encryptusPng from '../../assets/images/encryptus.png'; import { ReactComponent as InfoIcon } from '../../assets/images/info-icon-revamp.inline.svg'; import { exchangeApiMaker, exchangeManagerMaker } from '@yoroi/exchange' +import environment from '../../environment'; declare var chrome; @@ -351,21 +352,22 @@ export default class BuySellDialog extends Component { styleOverride={{ width: '648px' }} styleFlags={{ contentNoTopPadding: true }} > - this.setState({ isBuying: !state.isBuying })} - sx={{ - width: '100%', - [`& .${tabsClasses.indicator}`]: { - display: 'none', - }, - boxShadow: 'none', - }} - > - - - - + {(environment.isDev() || environment.isNightly()) && ( + this.setState({ isBuying: !state.isBuying })} + sx={{ + width: '100%', + [`& .${tabsClasses.indicator}`]: { + display: 'none', + }, + boxShadow: 'none', + }} + > + + + + )} {this.renderBuySell()} );