@@ -44,7 +44,7 @@ import { useRollerOptions } from './useRollerOptions';
4444import { useTimerStore } from 'store/timerStore';
4545
4646interface UpdateParams {
47− point: number;
47+ point?: Point | number;
4848 message?: string;
4949 notify?: boolean;
5050 field?: PointField;
@@ -140,7 +140,7 @@ export default function useRoller() {
140140 }, [nextQuotaTime, point, setModalText]);
141141
142142 const initPoint = useCallback(
143− async (point: string | number) => {
143+ async (point: string | number): Promise<Point> => {
144144 const _wallet = wallet.getOrElse(null);
145145 const _contracts = contracts.getOrElse(null);
146146
@@ -211,21 +211,24 @@ export default function useRoller() {
211211 l1Txn,
212212 intervalTime = TEN_SECONDS,
213213 }: UpdateParams) => {
214+
215+
216+ const p = (typeof point === 'number' ? await initPoint(point) : point) as Point
217+
214218 if (l1Txn) storePendingL1Txn(l1Txn);
215219
216220 let interval: any;
217221 const check = async () => {
218− const updatedPoint = await initPoint(point);
219− const changedField = !points[point]
222+ const changedField = !points[p.value]
220223 ? 'newPoint'
221− : updatedPoint.getChangedField(points[point], field);
224+ : p.getChangedField(points[p.value], field);
222225
223226 if (isDevelopment) {
224− console.log(`CHECKING FOR ${changedField} UPDATES:`, updatedPoint);
227+ console.log(`CHECKING FOR ${changedField} UPDATES:`, p.patp);
225228 }
226229
227− if (!updatedPoint.isPlaceholder && changedField) {
228− updatePoint(updatedPoint);
230+ if (!p.isPlaceholder && changedField) {
231+ updatePoint(p);
229232 if (interval) {
230233 clearInterval(interval);
231234 }
@@ -233,7 +236,7 @@ export default function useRoller() {
233236 if (l1Txn) deletePendingL1Txn(l1Txn);
234237 if (notify) {
235238 showNotification(
236− `${message || getUpdatedPointMessage(updatedPoint, changedField)}`
239+ `${message || getUpdatedPointMessage(p, changedField)}`
237240 );
238241 }
239242 }