From 56ee3ddb1e1b5d0ffbb8a56fff1c1329992e84f0 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 8 Sep 2024 22:14:54 +0200 Subject: [PATCH] use description? --- src/CashuWallet.ts | 2 +- src/model/types/wallet/payloads.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }; /**