diff --git a/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx b/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx index 6984ccc6f3..b57a978187 100644 --- a/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx @@ -72,8 +72,10 @@ export default class HelpUserSettingsTab extends React.Component private getVersionInfo(): { appVersion: string, olmVersion: string } { const brand = SdkConfig.get().brand; const appVersion = this.state.appVersion || 'unknown'; - let olmVersion = MatrixClientPeg.get().olmVersion; - olmVersion = olmVersion ? `${olmVersion[0]}.${olmVersion[1]}.${olmVersion[2]}` : ''; + const olmVersionTuple = MatrixClientPeg.get().olmVersion; + const olmVersion = olmVersionTuple + ? `${olmVersionTuple[0]}.${olmVersionTuple[1]}.${olmVersionTuple[2]}` + : ''; return { appVersion: `${_t("%(brand)s version:", { brand })} ${appVersion}`,