From 5b995c9d9c1814a8b1ad4a14774d32e8e7b0312f Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 3 Mar 2026 11:48:59 +0300 Subject: [PATCH] log the error for new user cases and return nil --- handlers/application/send.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handlers/application/send.go b/handlers/application/send.go index 6c5344d..37238d8 100644 --- a/handlers/application/send.go +++ b/handlers/application/send.go @@ -242,7 +242,9 @@ func (h *MenuHandlers) determineAndSaveTransactionType( // fetch data for use (to_voucher data) recipientActiveSym, recipientActiveAddress, recipientActiveDecimal, err := h.getRecipientData(ctx, string(recipientPhoneNumber)) if err != nil { - return err + // missing key (case for new users) + logg.ErrorCtxf(ctx, "failed on getRecipientData", "error", err) + return nil } swapMetadata := &dataserviceapi.TokenHoldings{ TokenAddress: string(recipientActiveAddress),