fix eslint errors in api functions

This commit is contained in:
mattyl006 2022-07-29 15:42:17 +02:00
parent 5d757a30f7
commit dff86c9519
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import {API} from "../utils/globals"; import {API} from '../utils/globals';
const getChallengeFullDescription = (setDataState, setLoading, challengeName) => { const getChallengeFullDescription = (setDataState, setLoading, challengeName) => {
fetch(`${API}/challenge-readme/${challengeName}/markdown`) fetch(`${API}/challenge-readme/${challengeName}/markdown`)
@ -8,6 +8,6 @@ const getChallengeFullDescription = (setDataState, setLoading, challengeName) =>
if (setLoading) if (setLoading)
setLoading(false); setLoading(false);
}); });
} };
export default getChallengeFullDescription; export default getChallengeFullDescription;

View File

@ -1,4 +1,4 @@
import {API} from "../utils/globals"; import {API} from '../utils/globals';
const getChallengeInfo = (setDataState, setLoadingState, challengeName) => { const getChallengeInfo = (setDataState, setLoadingState, challengeName) => {
fetch(`${API}/challenge-info/${challengeName}`) fetch(`${API}/challenge-info/${challengeName}`)
@ -8,6 +8,6 @@ const getChallengeInfo = (setDataState, setLoadingState, challengeName) => {
if (setLoadingState) if (setLoadingState)
setLoadingState(false); setLoadingState(false);
}); });
} };
export default getChallengeInfo; export default getChallengeInfo;

View File

@ -1,4 +1,4 @@
import {API} from "../utils/globals"; import {API} from '../utils/globals';
const getChallenges = (setDataState, setLoadingState) => { const getChallenges = (setDataState, setLoadingState) => {
fetch(`${API}/list-challenges`) fetch(`${API}/list-challenges`)
@ -8,6 +8,6 @@ const getChallenges = (setDataState, setLoadingState) => {
if (setLoadingState) if (setLoadingState)
setLoadingState(false); setLoadingState(false);
}); });
} };
export default getChallenges; export default getChallenges;