aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index ac017da05..fb57775b6 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -2,6 +2,7 @@ const inherits = require('util').inherits
const Component = require('react').Component
const connect = require('react-redux').connect
const h = require('react-hyperscript')
+const { checkFeatureToggle } = require('../lib/feature-toggle-utils')
const actions = require('./actions')
// init
const InitializeMenuScreen = require('./first-time/init-menu')
@@ -334,11 +335,8 @@ App.prototype.renderPrimary = function () {
case 'sendTransaction':
log.debug('rendering send tx screen')
- // Below param and ternary operator used for feature toggle
- // Remove before merged to master
- const windowParam = window.location.search.substr(1).split('=')
- const SendComponentToRender = windowParam[0] === "ft" && windowParam[1] === "send-v2"
+ const SendComponentToRender = checkFeatureToggle('send-v2')
? SendTransactionScreen2
: SendTransactionScreen