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:
parent
a32ce4fbf6
commit
9493f4a872
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue