Fix inverted lnbitsSchema env check (#1185)
This commit is contained in:
parent
7e1c62fdcb
commit
b7353ddd69
@ -601,7 +601,7 @@ export const lnAddrSchema = ({ payerData, min, max, commentAllowed } = {}) =>
|
|||||||
}, {})))
|
}, {})))
|
||||||
|
|
||||||
export const lnbitsSchema = object({
|
export const lnbitsSchema = object({
|
||||||
url: process.env.NODE_ENV !== 'development'
|
url: process.env.NODE_ENV === 'development'
|
||||||
? string()
|
? string()
|
||||||
.or([string().matches(/^(http:\/\/)?localhost:\d+$/), string().url()], 'invalid url')
|
.or([string().matches(/^(http:\/\/)?localhost:\d+$/), string().url()], 'invalid url')
|
||||||
.required('required').trim()
|
.required('required').trim()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user