on master help sign in
useRoller,points: removing debuggers
50d585bHunter Miller
src/lib/useRoller.ts−2
@@ -1008,7 +1008,6 @@ export default function useRoller() {
1008 spawningPoints: number[]
1008 spawningPoints: number[]
1009 ) => {
1009 ) => {
1010 try {
1010 try {
1011− debugger;
1012 const allPoints = [
1011 const allPoints = [
1013 await Promise.all(ownedPoints.map(initPoint)),
1012 await Promise.all(ownedPoints.map(initPoint)),
1014 await Promise.all(incomingPoints.map(initPoint)),
1013 await Promise.all(incomingPoints.map(initPoint)),
@@ -1017,7 +1016,6 @@ export default function useRoller() {
1017 await Promise.all(spawningPoints.map(initPoint)),
1016 await Promise.all(spawningPoints.map(initPoint)),
1018 ];
1017 ];
1019
1018
1020− debugger;
1021 setPoints(
1019 setPoints(
1022 allPoints.reduce((acc: Points, cur: (Point | undefined)[]) => {
1020 allPoints.reduce((acc: Points, cur: (Point | undefined)[]) => {
1023 cur.forEach(p => {
1021 cur.forEach(p => {
src/views/Points.tsx−1
@@ -121,7 +121,6 @@ export default function Points() {
121 [getDetails, controlledPoints, _contracts]
121 [getDetails, controlledPoints, _contracts]
122 );
122 );
123
123
124− debugger;
125 const allPoints = useMemo(
124 const allPoints = useMemo(
126 () =>
125 () =>
127 pointList.filter(
126 pointList.filter(