feat: address prompt feature toggle on ui

This commit is contained in:
Rafael Taranto 2025-05-28 10:19:01 +01:00
parent e6ffcacb78
commit a4bdbd1416
3 changed files with 33 additions and 1 deletions

View file

@ -353,7 +353,11 @@ function addOrUpdateCustomer(
.then(discount => ({ ...customer, discount }))
})
.then(customer => {
if (!cryptoCode) return customer
const enableLastUsedAddress = !!configManager.getWalletSettings(
cryptoCode,
config,
).enableLastUsedAddress
if (!cryptoCode || !enableLastUsedAddress) return customer
return customers
.getLastUsedAddress(customer.id, cryptoCode)
.then(lastUsedAddress => {