use the DATA_INITIAL_LANGUAGE_CODE to check the set language
This commit is contained in:
parent
b70d6b54d1
commit
1376c7b8dd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user