From eb6e1b6705560d6fe94cb5787839b9138ab4b979 Mon Sep 17 00:00:00 2001 From: Melissa Zhang Date: Mon, 13 Jul 2020 12:14:56 -0700 Subject: fixed authentication UI --- src/client/apis/HypothesisAuthenticationManager.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/apis/HypothesisAuthenticationManager.tsx b/src/client/apis/HypothesisAuthenticationManager.tsx index f995dee3b..9a6d78bac 100644 --- a/src/client/apis/HypothesisAuthenticationManager.tsx +++ b/src/client/apis/HypothesisAuthenticationManager.tsx @@ -53,7 +53,7 @@ export default class HypothesisAuthenticationManager extends React.Component<{}> Networking.PostToServer("/writeHypothesisAccessToken", { authenticationCode, hypothesisUsername }); runInAction(() => { this.success = true; - this.credentials = response; + this.credentials = { username: hypothesisUsername, apiKey: authenticationCode! }; }); this.resetState(); resolve(authenticationCode); -- cgit v1.2.3-70-g09d2