Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/sign up #610

Merged
merged 3 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frontend/app/src/people/auth/AuthQR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ function AuthQR(props: AuthProps) {
try {
const me: MeInfo = await api.get(`poll/${challenge}`);
if (me && me?.pubkey) {
ui.setMeInfo(me);
await ui.setMeInfo(me);
await main.saveProfile(me);

await main.getSelf(me);
setChallenge('');
if (props.onSuccess) props.onSuccess();
Expand All @@ -49,7 +51,7 @@ function AuthQR(props: AuthProps) {
if (i > 100) {
if (interval) clearInterval(interval);
}
} catch (e) {}
} catch (e) { }
}, 3000);
}
async function getChallenge() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/people/auth/SphinxAppLoginDeepLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function SphinxAppLoginDeeplink(props: AuthProps) {
if (i > 100) {
if (interval) clearInterval(interval);
}
} catch (e) {}
} catch (e) { }
}, 3000);
}
async function getChallenge() {
Expand Down
1 change: 0 additions & 1 deletion frontend/app/src/store/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,6 @@ export class MainStore {
let error: any = null;

const info = uiStore.meInfo as any;

const URL = info.url.startsWith('http') ? info.url : `https://${info.url}`;
if (!info) {
error = new Error('Youre not logged in');
Expand Down
Loading