diff --git a/src/App.svelte b/src/App.svelte index 0ba6c4f9..1edd2116 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -22,7 +22,7 @@ validatedUserName } from "./stores/user"; import {role} from "./util/role"; - import {getSocialAccount} from "./api"; + import {getSocialAccounts} from "./api"; import PublicBadgeClassPage from "./components/shared/PublicBadgeClassPage.svelte" import EnrollmentDetails from "./routes/students/EnrollmentDetails.svelte"; import {Flash} from "./components/forms/"; @@ -58,7 +58,7 @@ const path = window.location.pathname; const publicPaths = ["public", "/auth/login", "signup", "version/info", "launch/lti"] if (!publicPaths.some(p => path.indexOf(p) > -1)) { - getSocialAccount() + getSocialAccounts() .then(res => { loaded = true; $userLoggedIn = true; diff --git a/src/api/index.js b/src/api/index.js index b53dc7fa..1b5c10fb 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -81,7 +81,7 @@ export function getSocialAccountsSafe() { return validFetch(path); } -export function getSocialAccount() { +export function getSocialAccounts() { const path = `${serverUrl}/user/socialaccounts`; return validFetchNoErrorDialog(path); } @@ -110,11 +110,6 @@ export function deleteEmail(emailId) { return validFetchNoErrorDialog(path, {}, "DELETE"); } -export function getSocialAccounts() { - const path = `${serverUrl}/user/socialaccounts`; - return validFetch(path); -} - export function deleteUser(entityId) { const path = `${serverUrl}/user/delete/${entityId}`; return validFetch(path, {}, "DELETE");