mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-17 05:46:24 +00:00
only use authorizedPayments for withdraw
This commit is contained in:
parent
6b76e98e78
commit
214de820a2
@ -51,7 +51,7 @@ const TransferDialog = ({ row, handleClose, transferPledgeAmounts }) => (
|
||||
setStatus,
|
||||
status
|
||||
}) => (
|
||||
<form onSubmit={handleSubmit}>
|
||||
<form onSubmit={handleSubmit} autoComplete="off">
|
||||
<Dialog
|
||||
open={!!row}
|
||||
onClose={handleClose}
|
||||
@ -70,7 +70,6 @@ const TransferDialog = ({ row, handleClose, transferPledgeAmounts }) => (
|
||||
label="Amount to transfer"
|
||||
placeholder="Amount to transfer"
|
||||
variant="outlined"
|
||||
type="number"
|
||||
autoComplete="off"
|
||||
fullWidth
|
||||
onChange={handleChange}
|
||||
|
@ -65,7 +65,7 @@ class Withdraw extends PureComponent {
|
||||
initialValues={{}}
|
||||
onSubmit={async (values, { setSubmitting, resetForm, setStatus }) => {
|
||||
const { amount } = values
|
||||
const paymentId = authorizedPayments.find(r => r.ref === rowData.id)['idPayment']
|
||||
const paymentId = isPaying ? authorizedPayments.find(r => r.ref === rowData.id)['idPayment'] : rowData.id
|
||||
const args = isPaying ? [paymentId] : [paymentId, toWei(amount)]
|
||||
const sendFn = isPaying ? confirmPayment : withdraw
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user