use a single alias variable

This commit is contained in:
Alfred Kamanda 2025-07-01 01:18:03 +03:00
parent a33ff7ffda
commit 8416d4fddb
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

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