Skip to content

Commit

Permalink
🐛 (signup) fix setting up for the first time with missing protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed Sep 5, 2023
1 parent 96863b3 commit 2cc49a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions packages/loot-core/src/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1628,8 +1628,12 @@ handlers['get-did-bootstrap'] = async function () {
handlers['subscribe-needs-bootstrap'] = async function ({
url,
}: { url? } = {}) {
if (!getServer(url)) {
return { bootstrapped: true, hasServer: false };
try {
if (!getServer(url)) {
return { bootstrapped: true, hasServer: false };
}
} catch (err) {
return { error: 'get-server-failure' };
}

let res;
Expand Down
3 changes: 1 addition & 2 deletions packages/loot-core/src/server/server-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export function getServer(url?: string): ServerConfig | null {
SYNC_SERVER: joinURL(url, '/sync'),
SIGNUP_SERVER: joinURL(url, '/account'),
PLAID_SERVER: joinURL(url, '/plaid'),
// TODO: change to use `/gocardless` after v23.8.0
GOCARDLESS_SERVER: joinURL(url, '/nordigen'),
GOCARDLESS_SERVER: joinURL(url, '/gocardless'),
};
}
return config;
Expand Down

0 comments on commit 2cc49a8

Please sign in to comment.