[PE mobile] refactoring

This commit is contained in:
Maxim Kadushkin 2020-12-16 00:11:49 +03:00
parent f44dd4f04a
commit c30d6056f9

View file

@ -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()}`;
}
}