Skip to content

Commit 20b2834

Browse files
authored
Warn about withdrawing the whole balance (#533)
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.
1 parent a4a5914 commit 20b2834

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/renderer/views/Dashboard/WithdrawModal.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import roundTo from 'round-to';
33
import Modal from 'components/Modal';
44
import Button from 'components/Button';
55
import Input from 'components/Input';
6-
import Link from 'components/Link';
76
import appContainer from 'containers/App';
87
import dashboardContainer from 'containers/Dashboard';
98
import {formatCurrency} from '../../util';
@@ -111,6 +110,10 @@ class WithdrawModal extends React.Component {
111110
/>
112111
</div>
113112
<div className="section">
113+
<p>
114+
{/* TODO: Remove this when #302 is fixed */}
115+
<small>{'Note: HyperDEX doesn\'t yet calculate the TX fee, so you can\'t withdraw the whole balance. Try withdrawing slightly less.'}</small>
116+
</p>
114117
<label>{t('withdraw.amountLabel')}:</label>
115118
<div className="amount-inputs">
116119
<Input
@@ -147,13 +150,15 @@ class WithdrawModal extends React.Component {
147150
<span>USD</span>
148151
)}
149152
/>
153+
{/* Hidden because of #302
150154
<Link
151155
onClick={() => {
152156
setAmount(maxAmount);
153157
}}
154158
>
155159
({t('withdraw.maxAmount')})
156160
</Link>
161+
*/}
157162
</div>
158163
</div>
159164
<div className="section">

0 commit comments

Comments
 (0)