mirror of
https://github.com/joinmarket-webui/jam.git
synced 2026-08-20 13:28:21 +02:00
fix(send): fix address-not-from-source-jar-test
This commit is contained in:
parent
67fd583401
commit
051ff0fc8c
1 changed files with 2 additions and 0 deletions
|
|
@ -194,6 +194,8 @@ const sendFormSchema = (
|
|||
})
|
||||
.required()
|
||||
.test('address-not-from-source-jar-test', function (root) {
|
||||
// Note: `fromJar` might still be `undefined` at this point
|
||||
if (root.source.fromJar === undefined) return true
|
||||
const addressIsFromSourceJar = addressSummary[root.destination.address]?.jarIndex === root.source.fromJar
|
||||
if (!addressIsFromSourceJar) return true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue