From 19f525d244d1619f8456b8a455bc2043cf9dbe21 Mon Sep 17 00:00:00 2001
From: kimdahey <claire_kim1@brown.edu>
Date: Fri, 17 Jan 2020 15:10:31 -0500
Subject: minor visual changes

---
 src/client/util/SettingsManager.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/client/util/SettingsManager.tsx')

diff --git a/src/client/util/SettingsManager.tsx b/src/client/util/SettingsManager.tsx
index e1fbeb138..ff0b22381 100644
--- a/src/client/util/SettingsManager.tsx
+++ b/src/client/util/SettingsManager.tsx
@@ -73,6 +73,8 @@ export default class SettingsManager extends React.Component<{}> {
     @action
     onClick = (event: any) => {
         this.settingsContent = event.currentTarget.value;
+        this.errorText = "";
+        this.successText = "";
     }
 
     private get settingsInterface() {
@@ -94,10 +96,10 @@ export default class SettingsManager extends React.Component<{}> {
                             <input placeholder="current password" ref={this.curr_password_ref} />
                             <input placeholder="new password" ref={this.new_password_ref} />
                             <input placeholder="confirm new password" ref={this.new_confirm_ref} />
-                            <button onClick={this.dispatchRequest}>submit</button>
-                            <a href="/forgotPassword">forgot password?</a>
                             {this.errorText ? <div className="error-text">{this.errorText}</div> : undefined}
                             {this.successText ? <div className="success-text">{this.successText}</div> : undefined}
+                            <button onClick={this.dispatchRequest}>submit</button>
+                            <a href="/forgotPassword">forgot password?</a>
 
                         </div>
                         : undefined}
-- 
cgit v1.2.3-70-g09d2

