From 3c82174f03e1cde26d06034143cb261978034afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Sat, 5 Jan 2019 00:32:45 -0800 Subject: [PATCH] Capitalize first letter of KeepRight error detail --- modules/ui/keepRight_details.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/ui/keepRight_details.js b/modules/ui/keepRight_details.js index 01702365d..d73de470f 100644 --- a/modules/ui/keepRight_details.js +++ b/modules/ui/keepRight_details.js @@ -18,13 +18,15 @@ export function uiKeepRightDetails(context) { var et = dataEn.QA.keepRight.errorTypes[errorType]; var pt = dataEn.QA.keepRight.errorTypes[parentErrorType]; + var detail; if (et && et.description) { - return t('QA.keepRight.errorTypes.' + errorType + '.description', d.replacements); + detail = t('QA.keepRight.errorTypes.' + errorType + '.description', d.replacements); } else if (pt && pt.description) { - return t('QA.keepRight.errorTypes.' + parentErrorType + '.description', d.replacements); + detail = t('QA.keepRight.errorTypes.' + parentErrorType + '.description', d.replacements); } else { - return unknown; + detail = unknown; } + return detail.substr(0, 1).toUpperCase() + detail.substr(1); }