log the error for new user cases and return nil

This commit is contained in:
Alfred Kamanda 2026-03-03 11:48:59 +03:00
parent 1a7d160ae6
commit 5b995c9d9c
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -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),