From 3b419b1097b5201dba9f54101f41fe1f0faef79e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 4 Jun 2024 22:59:20 +0000 Subject: [PATCH] Don't pass empty strings to the API for no reason? --- src/actions/interactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/interactions.ts b/src/actions/interactions.ts index 5c8460742..cabcbb391 100644 --- a/src/actions/interactions.ts +++ b/src/actions/interactions.ts @@ -319,7 +319,7 @@ const zap = (account: AccountEntity, status: StatusEntity | undefined, amount: n if (status) dispatch(zapRequest(status)); - return api(getState).post('/api/v1/ditto/zap', { amount, comment: comment ?? '', account_id: account.id, status_id: status?.id ?? '' }).then(async function(response) { + return api(getState).post('/api/v1/ditto/zap', { amount, comment, account_id: account.id, status_id: status?.id }).then(async function(response) { const { invoice } = response.data; if (!invoice) throw Error('Could not generate invoice'); if (!window.webln) return invoice;