diff --git a/README.rst b/README.rst index 6ed96d2b3..4ba105623 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,7 @@ frontend-app-account ========================= -Please tag **@edx/arch-team** on any PRs or issues. Thanks. +Please tag **@edx/arch-team** on any PRs or issues. Introduction ------------ diff --git a/src/example/service.js b/src/example/service.js index 518a961f2..6b7eda667 100644 --- a/src/example/service.js +++ b/src/example/service.js @@ -6,7 +6,7 @@ let config = { LMS_BASE_URL: null, }; -let apiClient = null; +let apiClient = null; // eslint-disable-line function validateConfiguration(newConfig) { Object.keys(config).forEach((key) => { @@ -23,10 +23,10 @@ export function configureApiService(newConfig, newApiClient) { } export async function getData(data) { - //const { data } = await apiClient.get(`${config.API_BASE_URL}/example/`, { - return new Promise((resolve, reject) => { + // const { data } = await apiClient.get(`${config.API_BASE_URL}/example/`, { + return new Promise((resolve) => { setTimeout(() => { resolve(data); }, 2000); - });; + }); }