diff --git a/src/CashuWallet.ts b/src/CashuWallet.ts index 4e783bf5..2518664a 100644 --- a/src/CashuWallet.ts +++ b/src/CashuWallet.ts @@ -339,7 +339,7 @@ class CashuWallet { const mintQuotePayload: MintQuotePayload = { unit: this._unit, amount: amount, - description: description || null + description: description }; return await this.mint.createMintQuote(mintQuotePayload); } diff --git a/src/model/types/wallet/payloads.ts b/src/model/types/wallet/payloads.ts index 70855dea..7e8b6766 100644 --- a/src/model/types/wallet/payloads.ts +++ b/src/model/types/wallet/payloads.ts @@ -101,7 +101,7 @@ export type MintQuotePayload = { /** * Description for the invoice */ - description: string | null; + description?: string; }; /**