no empty liquidity flag
This commit is contained in:
parent
517d08408c
commit
5a2c2ff573
1 changed files with 9 additions and 3 deletions
|
|
@ -153,11 +153,17 @@ export class Wizard {
|
|||
}
|
||||
|
||||
const automateLiquidityIndex = envFileContent.findIndex(line => line.startsWith('LIQUIDITY_PROVIDER_PUB'))
|
||||
if (pendingConfig.automateLiquidity) {
|
||||
if (automateLiquidityIndex !== -1) {
|
||||
envFileContent.splice(automateLiquidityIndex, 1)
|
||||
}
|
||||
} else {
|
||||
if (automateLiquidityIndex === -1) {
|
||||
toMerge.push(`LIQUIDITY_PROVIDER_PUB=${pendingConfig.automateLiquidity ? defaultProviderPub : ""}`)
|
||||
toMerge.push(`LIQUIDITY_PROVIDER_PUB=null`)
|
||||
} else {
|
||||
envFileContent[automateLiquidityIndex] = `LIQUIDITY_PROVIDER_PUB=null`
|
||||
}
|
||||
}
|
||||
|
||||
const pushBackupsToNostrIndex = envFileContent.findIndex(line => line.startsWith('PUSH_BACKUPS_TO_NOSTR'))
|
||||
if (pushBackupsToNostrIndex === -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue