From 1376c7b8dd3403679d4c56b84c366897527914d4 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Wed, 15 Jan 2025 15:53:26 +0300 Subject: [PATCH] use the DATA_INITIAL_LANGUAGE_CODE to check the set language --- handlers/application/menuhandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index d81ad7b..37c8ae1 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -182,7 +182,7 @@ func (h *MenuHandlers) SetAccountFlags(ctx context.Context, sym string, input [] res.FlagSet = append(res.FlagSet, flag_account_created) // check language status - code, err := store.ReadEntry(ctx, sessionId, storedb.DATA_SELECTED_LANGUAGE_CODE) + code, err := store.ReadEntry(ctx, sessionId, storedb.DATA_INITIAL_LANGUAGE_CODE) if err != nil { logg.ErrorCtxf(ctx, "failed to read language code entry with", "key", storedb.DATA_SELECTED_LANGUAGE_CODE, "error", err) return res, nil