Show correct text in set email password dialog (2)

Fixes https://github.com/vector-im/riot-web/issues/4311

The cancel button onClick was hooked directly up to onFinished, so
the mouse event ended up as the boolean for whether an email had
been set.
This commit is contained in:
David Baker 2017-06-14 16:06:28 +01:00
parent 449c65b784
commit 9ecf82a1f2

View file

@ -155,7 +155,7 @@ export default React.createClass({
<input
type="submit"
value={_t("Cancel")}
onClick={this.props.onFinished}
onClick={this.onCancelled}
/>
</div>
</BaseDialog>