From a127ab13312a8fb119fc0be2fb9fba4ddfc4a510 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 25 Sep 2018 15:49:41 +0700 Subject: [PATCH] Warn about withdrawing the whole balance Since it doesn't seem like #302 will be fixed anytime soon and lots of users are encountering it, we should make the issue clear and prevent it from happening. --- app/renderer/views/Dashboard/WithdrawModal.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/renderer/views/Dashboard/WithdrawModal.js b/app/renderer/views/Dashboard/WithdrawModal.js index ca1914aa72..9cd66126db 100644 --- a/app/renderer/views/Dashboard/WithdrawModal.js +++ b/app/renderer/views/Dashboard/WithdrawModal.js @@ -3,7 +3,6 @@ import roundTo from 'round-to'; import Modal from 'components/Modal'; import Button from 'components/Button'; import Input from 'components/Input'; -import Link from 'components/Link'; import appContainer from 'containers/App'; import dashboardContainer from 'containers/Dashboard'; import {formatCurrency} from '../../util'; @@ -111,6 +110,10 @@ class WithdrawModal extends React.Component { />
+

+ {/* TODO: Remove this when #302 is fixed */} + {'Note: HyperDEX doesn\'t yet calculate the TX fee, so you can\'t withdraw the whole balance. Try withdrawing slightly less.'} +

USD )} /> + {/* Hidden because of #302 { setAmount(maxAmount); @@ -154,6 +158,7 @@ class WithdrawModal extends React.Component { > ({t('withdraw.maxAmount')}) + */}