Fix console.logs

This commit is contained in:
Jordan Eldredge 2020-09-04 10:58:49 -07:00
parent 9991ec6ff6
commit 228bc8fdd4
2 changed files with 3 additions and 4 deletions

View file

@ -155,7 +155,6 @@ const unloadedSkinEpic = (actions, states) =>
mergeMap(async ({ index }) => {
const chunkSize = 100;
const chunk = Math.floor(index / (chunkSize - 1));
console.log({ chunk });
switch (chunk) {
case 0: {
const page = await import("../page1.json");
@ -202,7 +201,7 @@ const unloadedSkinEpic = (actions, states) =>
return [page.default, chunk];
}
default:
console.log("Going to server");
console.log("Going to server for chucnk", chunk);
}
if (chunkState[chunk] != null) {
return null;
@ -213,8 +212,9 @@ const unloadedSkinEpic = (actions, states) =>
chunk * chunkSize
}&first=${chunkSize}`
);
console.log("Got from server for chucnk", chunk);
const body = await response.json();
console.log("From api", body);
return [body, chunk];
}),
filter(Boolean),

View file

@ -19,7 +19,6 @@ const defaultState = {
export default function reducer(state = defaultState, action) {
switch (action.type) {
case "SET_SCALE": {
console.log(action);
return { ...state, scale: action.scale };
}
case "GOT_SKIN_DATA": {