From ccd6713ef1ee0b60402ad82fefd0163f19a491b4 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Sun, 18 Dec 2016 22:08:17 -0500 Subject: [PATCH] get `formatMessage` from props Fixes #1125. I had fixed this last iteration, not sure how it got re-introduced. --- src/components/registration/steps.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/registration/steps.jsx b/src/components/registration/steps.jsx index 81bac2a01..ae35ad8a8 100644 --- a/src/components/registration/steps.jsx +++ b/src/components/registration/steps.jsx @@ -93,7 +93,7 @@ module.exports = { callback = callback || function () {}; if (!username) { this.refs.form.refs.formsy.updateInputsWithError({ - 'user.username': formatMessage({id: 'form.validationRequired'}) + 'user.username': this.props.intl.formatMessage({id: 'form.validationRequired'}) }); return callback(false); }