fix(send): fix address-not-from-source-jar-test

This commit is contained in:
theborakompanioni 2026-02-18 18:34:35 +01:00
parent 67fd583401
commit 051ff0fc8c
No known key found for this signature in database
GPG key ID: E8070AF0053AAC0D

View file

@ -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