From 27d9938da6670335177e69058f27e40d0c301188 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 6 May 2025 16:11:05 +0300 Subject: [PATCH] remove white spaces from the input --- handlers/application/menuhandler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index eb9754f..ba70bf8 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -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)