diff --git a/src/requests/split-swap-request.ts b/src/requests/split-swap-request.ts index eb6e2ce..bbd6fde 100644 --- a/src/requests/split-swap-request.ts +++ b/src/requests/split-swap-request.ts @@ -197,7 +197,7 @@ export class SplitSwapRequest { const swapOutTokenName: string = this._swapOutToken === 'lovelace' ? 'ADA' : this._swapOutToken.assetName; splitSwapTransaction.attachMetadata(MetadataKey.Message, { msg: [ - this._metadata ?? `[${this._dexter.config.metadataMsgBranding}] Split ${swapInTokenName} -> ${swapOutTokenName} Swap` + this._metadata !== '' ? this._metadata : `[${this._dexter.config.metadataMsgBranding}] Split ${swapInTokenName} -> ${swapOutTokenName} Swap` ] }); diff --git a/src/requests/swap-request.ts b/src/requests/swap-request.ts index 22c8bd9..087a9cb 100644 --- a/src/requests/swap-request.ts +++ b/src/requests/swap-request.ts @@ -279,7 +279,7 @@ export class SwapRequest { const swapOutTokenName: string = this._swapOutToken === 'lovelace' ? 'ADA' : this._swapOutToken.assetName; swapTransaction.attachMetadata(MetadataKey.Message, { msg: [ - this._metadata ?? `[${this._dexter.config.metadataMsgBranding}] ${this._liquidityPool.dex} ${swapInTokenName} -> ${swapOutTokenName} Swap` + this._metadata !== '' ? this._metadata : `[${this._dexter.config.metadataMsgBranding}] ${this._liquidityPool.dex} ${swapInTokenName} -> ${swapOutTokenName} Swap` ] });