diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-07 16:54:27 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-07 16:54:27 -0400 |
| commit | c9a2b488c83dcaae0a00d2177d3bfe1f185c28bf (patch) | |
| tree | ee3b0ad93874e434a212b43194286f366f13fbe1 /frontend/components/EditUser.js | |
| parent | dbd39fcc3861facecdd4413c90ae85cebd5db67f (diff) | |
TEST ESTSE TS ETSETST
Diffstat (limited to 'frontend/components/EditUser.js')
| -rw-r--r-- | frontend/components/EditUser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/components/EditUser.js b/frontend/components/EditUser.js index eeba72e..506966b 100644 --- a/frontend/components/EditUser.js +++ b/frontend/components/EditUser.js @@ -31,7 +31,6 @@ class EditUser extends React.Component { <Query query={CURRENT_USER_QUERY}> {({ data: { me }, loading }) => { if (loading) return <p>Loading...</p>; - if (!me) return <p>You must be logged in</p>; return ( <Mutation mutation={UPDATE_USER_MUTATION} @@ -42,6 +41,7 @@ class EditUser extends React.Component { <Form onSubmit={e => this.handleSubmit(e, updateUser)}> <Error error={error} /> <fieldset disabled={loading} aria-busy={loading}> + {called && !error && <p data-test="updated">Updated!</p>} <label htmlFor="name"> Name: <input |
