aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/PasswordModal.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/PasswordModal.js')
-rw-r--r--frontend/src/components/PasswordModal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/PasswordModal.js b/frontend/src/components/PasswordModal.js
index 4b37dfe..ff4a0df 100644
--- a/frontend/src/components/PasswordModal.js
+++ b/frontend/src/components/PasswordModal.js
@@ -35,8 +35,8 @@ class PasswordModal extends React.Component {
constructor(props) {
super(props);
-
this.submitPassword = this.submitPassword.bind(this);
+ this.ErrorLabel = React.createRef();
}
submitPassword(event) {
@@ -64,7 +64,7 @@ class PasswordModal extends React.Component {
</RightPad>
<LeftPad>
<input className="lt-button lt-shadow lt-hover" type="submit" value="continue" />
- <Error msg={this.props.error} />
+ <Error ref={this.ErrorLabel} />
</LeftPad>
</form>
</Modal>