Compare commits

...

2 Commits

Author SHA1 Message Date
Keyan 59a24192c1
Merge pull request #1487 from stackernews/fix-missing-autowithdraw-validation
Fix missing autowithdraw settings validation
2024-10-18 13:06:57 -05:00
ekzyis 6cc49e937b Fix missing autowithdraw settings validation 2024-10-18 18:58:59 +02:00
1 changed files with 6 additions and 3 deletions

View File

@ -726,7 +726,8 @@ export const lnbitsSchema = object().shape({
test: invoiceKey => adminKey !== invoiceKey,
message: 'invoice key cannot be the same as admin key'
})
})
}),
...autowithdrawSchemaMembers
// need to set order to avoid cyclic dependencies in Yup schema
// see https://github.com/jquense/yup/issues/176#issuecomment-367352042
}, ['adminKey', 'invoiceKey'])
@ -745,7 +746,8 @@ export const nwcSchema = object().shape({
test: nwcUrlRecv => nwcUrlRecv !== nwcUrl,
message: 'connection for receiving cannot be the same as for sending'
})
})
}),
...autowithdrawSchemaMembers
}, ['nwcUrl', 'nwcUrlRecv'])
export const blinkSchema = object({
@ -796,7 +798,8 @@ export const phoenixdSchema = object().shape({
test: secondary => primary !== secondary,
message: 'secondary password cannot be the same as primary password'
})
})
}),
...autowithdrawSchemaMembers
}, ['primaryPassword', 'secondaryPassword'])
export const bioSchema = object({