Fix cannot switch language to English

This commit is contained in:
Zhiyuan Zheng 2022-02-08 22:49:59 +01:00
parent 49c67da6de
commit 6e406db703
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ const SettingsApp: React.FC = () => {
cancelButtonIndex: options.length - 1 cancelButtonIndex: options.length - 1
}, },
buttonIndex => { buttonIndex => {
if (!buttonIndex) return if (buttonIndex === undefined) return
if (buttonIndex < options.length - 1) { if (buttonIndex < options.length - 1) {
analytics('settings_language_press', { analytics('settings_language_press', {
current: i18n.language, current: i18n.language,