diff --git a/src/client/app/charts/order-dialog.js b/src/client/app/charts/order-dialog.js index 5cf530ba..cc7cc159 100644 --- a/src/client/app/charts/order-dialog.js +++ b/src/client/app/charts/order-dialog.js @@ -50,7 +50,13 @@ function changeMarket(instrument) { var price = quotesService.getQuotes()[instrument], - fixed = (pips[vm.selectedInstrument].match(/0/g) || []).length; + fixed; + + if (!pips) { + return; + } + + fixed = (pips[vm.selectedInstrument].match(/0/g) || []).length; vm.measure = "price"; vm.step = parseFloat(pips[vm.selectedInstrument]);