remove white spaces from the input

This commit is contained in:
Alfred Kamanda 2025-05-06 16:11:05 +03:00
parent 3fb36378d4
commit 27d9938da6
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -1623,7 +1623,8 @@ func (h *MenuHandlers) ValidateRecipient(ctx context.Context, sym string, input
flag_invalid_recipient_with_invite, _ := h.flagManager.GetFlag("flag_invalid_recipient_with_invite")
flag_api_error, _ := h.flagManager.GetFlag("flag_api_call_error")
recipient := string(input)
// remove white spaces
recipient := strings.ReplaceAll(string(input), " ", "")
if recipient != "0" {
recipientType, err := identity.CheckRecipient(recipient)