Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
fix(order dialog): convert price to string
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosantini authored Nov 2, 2016
1 parent d331438 commit 7fb79ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/client/app/charts/order-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@
fixed = ((pips[vm.selectedInstrument] + "")
.match(/0/g) || []).length;



$mdDialog.hide(action);

vm.step = parseFloat(pips[vm.selectedInstrument]);
Expand All @@ -123,7 +121,7 @@
order.type = vm.type;

if (order.type === "LIMIT") {
order.price = vm.quote;
order.price = vm.quote + "";
order.expiry = new Date(Date.now() + vm.selectedExpire);
}

Expand Down

0 comments on commit 7fb79ae

Please sign in to comment.