Skip to content

Commit

Permalink
Disabling deposit/withdraw from account screen
Browse files Browse the repository at this point in the history
Using hash history routing running server.js
  • Loading branch information
ruslansalikhov committed Jun 24, 2017
1 parent 965aef7 commit 90cadc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion web/app/components/Account/AccountOverview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ class AccountOverview extends React.Component {
const includeAsset = !hiddenAssets.includes(asset_type);
const hasBalance = !!balanceObject.get("balance");
const hasOnOrder = !!orders[asset_type];
const canDepositWithdraw = !!this.props.backedCoins.get("OPEN", []).find(a => a.symbol === asset.get("symbol"));
// FIXME: temporary disabled deposit/withdraw from account screen
// because wrong form used here
const canDepositWithdraw = false;//!!this.props.backedCoins.get("OPEN", []).find(a => a.symbol === asset.get("symbol"));
const canWithdraw = canDepositWithdraw && (hasBalance && balanceObject.get("balance") != 0);
const canBuy = !!this.props.bridgeCoins.get(symbol);

Expand Down
2 changes: 1 addition & 1 deletion web/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var devMiddleware = require("webpack-dev-middleware");
var hotMiddleware = require("webpack-hot-middleware");

var ProgressPlugin = require("webpack/lib/ProgressPlugin");
var config = require("./webpack.config.js")({prod: false});
var config = require("./webpack.config.js")({prod: false, hash: true});

var app = express();
var compiler = webpack(config);
Expand Down

0 comments on commit 90cadc4

Please sign in to comment.