fallback from undefined for interpolation

because _t called with undefined interpolation name: errorDetail
even though when its undef its not used to sprinf-js would have been fine...

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-06-12 10:42:44 +01:00
parent a32ce4fbf6
commit 9493f4a872

View File

@ -47,7 +47,7 @@ export default React.createClass({
},
render: function() {
const message = _t(statusText[this.props.status], { errorDetail: this.props.detail });
const message = _t(statusText[this.props.status], { errorDetail: this.props.detail || '' });
let image;
if (doneStatuses.includes(this.props.status)) {