From ef8c9246aaef1bd1308fc58974c1a70758a8d82f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 26 Oct 2018 10:07:21 -0600 Subject: [PATCH] Maybe fix UserSettings? --- src/components/structures/UserSettings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index f32026511b..772eb70dde 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -1298,7 +1298,7 @@ module.exports = React.createClass({ // If the olmVersion is not defined then either crypto is disabled, or // we are using a version old version of olm. We assume the former. let olmVersionString = ""; - if (olmVersion !== undefined) { + if (olmVersion) { olmVersionString = `${olmVersion[0]}.${olmVersion[1]}.${olmVersion[2]}`; }