Capitalize first letter of KeepRight error detail

This commit is contained in:
Minh Nguyễn
2019-01-05 00:32:45 -08:00
committed by GitHub
parent da4cb156a0
commit 3c82174f03
+5 -3
View File
@@ -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);
}