From c30d6056f9bb578a4684f122c0d794a9efde5bac Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 16 Dec 2020 00:11:49 +0300 Subject: [PATCH] [PE mobile] refactoring --- .../mobile/src/controller/settings/PresentationInfo.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/presentationeditor/mobile/src/controller/settings/PresentationInfo.jsx b/apps/presentationeditor/mobile/src/controller/settings/PresentationInfo.jsx index 720a9d815..eea17514a 100644 --- a/apps/presentationeditor/mobile/src/controller/settings/PresentationInfo.jsx +++ b/apps/presentationeditor/mobile/src/controller/settings/PresentationInfo.jsx @@ -24,11 +24,7 @@ class PresentationInfoController extends Component { const appProps = api.asc_getAppProps(); if (appProps) { - let appName = - (appProps.asc_getApplication() || "") + - (appProps.asc_getAppVersion() ? " " : "") + - (appProps.asc_getAppVersion() || ""); - return appName; + return `${!appProps.asc_getApplication() ? '' : appProps.asc_getApplication() + ' ' + appProps.asc_getAppVersion()}`; } }