Fix paymentinfo with no accounts (#5022)
This commit is contained in:
parent
12d4601a7b
commit
a45652525c
@ -49,7 +49,7 @@ export function useTxBatch (txs?: SubmittableExtrinsic<'promise'>[] | null, opti
|
||||
const [batchSize, setBatchSize] = useState(Math.floor(options?.batchSize || 64));
|
||||
|
||||
useEffect((): void => {
|
||||
txs && txs.length &&
|
||||
txs && txs.length && allAccounts[0] &&
|
||||
txs[0]
|
||||
.paymentInfo(allAccounts[0])
|
||||
.then((info) => setBatchSize((prev) =>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user