From 8416d4fddba3b6c4513551ee751df82ffaab4f4a Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Tue, 1 Jul 2025 01:18:03 +0300 Subject: [PATCH] use a single alias variable --- handlers/application/menuhandler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index 523e76e..2e51afb 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -2613,7 +2613,7 @@ func (h *MenuHandlers) RequestCustomAlias(ctx context.Context, sym string, input logg.ErrorCtxf(ctx, "failed to update alias", "alias", sanitizedInput, "error", err) return res, nil } - alias := aliasResult.Alias + alias = aliasResult.Alias logg.InfoCtxf(ctx, "Updated alias", "alias", alias) } else { logg.InfoCtxf(ctx, "Registering a new alias", "err", err) @@ -2626,7 +2626,7 @@ func (h *MenuHandlers) RequestCustomAlias(ctx context.Context, sym string, input } res.FlagReset = append(res.FlagReset, flag_api_error) - alias := aliasResult.Alias + alias = aliasResult.Alias logg.InfoCtxf(ctx, "Suggested alias", "alias", alias) } //Store the returned alias,wait for user to confirm it as new account alias