@@ -92,6 +92,7 @@ export default function useRoller() {
92 const { setNextRoll } = useTimerStore();
92 const { setNextRoll } = useTimerStore();
95 nextBatchTime,
96 nextBatchTime,
@@ -262,7 +263,8 @@ export default function useRoller() {
262 }: UpdateParams) => {
263 }: UpdateParams) => {
263 if (l1Txn) storePendingL1Txn(l1Txn);
264 if (l1Txn) storePendingL1Txn(l1Txn);
265− const interval = setInterval(async () => {
266+ let interval: any;
267+ const check = async () => {
266 const updatedPoint = await initPoint(point);
268 const updatedPoint = await initPoint(point);
267 const changedField = !points[point]
269 const changedField = !points[point]
268 ? 'newPoint'
270 ? 'newPoint'
@@ -274,7 +276,10 @@ export default function useRoller() {
275 if (!updatedPoint.isPlaceholder && changedField) {
277 if (!updatedPoint.isPlaceholder && changedField) {
276 updatePoint(updatedPoint);
278 updatePoint(updatedPoint);
277− clearInterval(interval);
280+ clearInterval(interval);
278 if (l1Txn) deletePendingL1Txn(l1Txn);
283 if (l1Txn) deletePendingL1Txn(l1Txn);
279 if (notify) {
284 if (notify) {
280 showNotification(
285 showNotification(
@@ -282,7 +287,10 @@ export default function useRoller() {
285− }, intervalTime);
292+ interval = setInterval(check, intervalTime);
287 [points, initPoint, updatePoint, storePendingL1Txn, deletePendingL1Txn]
295 [points, initPoint, updatePoint, storePendingL1Txn, deletePendingL1Txn]
@@ -352,6 +360,10 @@ export default function useRoller() {
354 const getInvites = useCallback(async () => {
362 const getInvites = useCallback(async () => {
363+ if (invitesLoading) {
356 setInvitesLoading(true);
368 setInvitesLoading(true);
357 const curPoint: number = Number(need.point(pointCursor));
369 const curPoint: number = Number(need.point(pointCursor));