Fix undefined in resolved WalletTemplate id (#2344)

This commit is contained in:
ekzyis 2025-07-28 05:04:22 +02:00 committed by GitHub
parent cf5ac8272d
commit 20147cae15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,12 +19,12 @@ const WalletTemplate = {
protocols: walletTemplate => { protocols: walletTemplate => {
return [ return [
...walletTemplate.sendProtocols.map(protocol => ({ ...walletTemplate.sendProtocols.map(protocol => ({
id: `WalletTemplate-${walletTemplate.id}-${protocol}-send`, id: `WalletTemplate-${walletTemplate.name}-${protocol}-send`,
name: protocol, name: protocol,
send: true send: true
})), })),
...walletTemplate.recvProtocols.map(protocol => ({ ...walletTemplate.recvProtocols.map(protocol => ({
id: `WalletTemplate-${walletTemplate.id}-${protocol}-recv`, id: `WalletTemplate-${walletTemplate.name}-${protocol}-recv`,
name: protocol, name: protocol,
send: false send: false
})) }))