log the error for new user cases and return nil
This commit is contained in:
parent
1a7d160ae6
commit
5b995c9d9c
@ -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),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user