Skip to content
Snippets Groups Projects
Commit 80bc8ebb authored by James Calfee's avatar James Calfee Committed by Valentine Zavgorodnev
Browse files

Remove the memo in the Transfer to Savings and Savings Withdraw forms. (close #223) (#459)

parent b4267338
No related branches found
No related tags found
No related merge requests found
...@@ -46,9 +46,9 @@ class TransferForm extends Component { ...@@ -46,9 +46,9 @@ class TransferForm extends Component {
} }
initForm(props) { initForm(props) {
const {transferType} = props.initialValues
const insufficientFunds = (asset, amount) => { const insufficientFunds = (asset, amount) => {
const {currentAccount} = props const {currentAccount} = props
const {transferType} = props.initialValues
const isWithdraw = transferType && transferType === 'Savings Withdraw' const isWithdraw = transferType && transferType === 'Savings Withdraw'
const balanceValue = const balanceValue =
!asset || asset === 'STEEM' ? !asset || asset === 'STEEM' ?
...@@ -61,7 +61,9 @@ class TransferForm extends Component { ...@@ -61,7 +61,9 @@ class TransferForm extends Component {
return parseFloat(amount) > parseFloat(balance) return parseFloat(amount) > parseFloat(balance)
} }
const {toVesting} = props const {toVesting} = props
const fields = toVesting ? ['to', 'amount'] : ['to', 'amount', 'asset', 'memo'] const fields = toVesting ? ['to', 'amount'] : ['to', 'amount', 'asset']
if(transferType !== 'Transfer to Savings' && transferType !== 'Savings Withdraw')
fields.push('memo')
reactForm({ reactForm({
name: 'transfer', name: 'transfer',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment