fix signup flow

pull/40/head
Tim Pechersky 2021-08-02 23:33:10 +08:00
rodzic 1a1a7eed52
commit 7ed00f2145
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -18,10 +18,7 @@ const useSignUp = (source) => {
isSuccess,
} = useMutation(AuthService.register(), {
onSuccess: (response) => {
localStorage.setItem(
"MOONSTREAM_ACCESS_TOKEN",
response.data.access_token
);
localStorage.setItem("MOONSTREAM_ACCESS_TOKEN", response.data.id);
const invite_code = window.sessionStorage.getItem("invite_code");
if (invite_code) {
inviteAccept(invite_code);