launch-calcium commited on
Commit
a0c7237
·
verified ·
1 Parent(s): 0a86a5d

Raise max cap from 320 to 69426734621

Browse files
Files changed (1) hide show
  1. src/routes/index.tsx +3 -3
src/routes/index.tsx CHANGED
@@ -46,11 +46,11 @@ function Grabber() {
46
  useEffect(() => {
47
  try {
48
  const v = Number(localStorage.getItem("grabber.hardCap"));
49
- if (v >= 1) { setHardCapState(Math.min(320, v)); setLimit((l) => Math.min(l, v)); }
50
  } catch (e) { console.warn("[hardCap] load failed", e); }
51
  }, []);
52
  const setHardCap = (n: number) => {
53
- const v = Math.max(1, Math.min(320, Math.floor(n) || 30));
54
  setHardCapState(v);
55
  setLimit((l) => Math.min(l, v));
56
  try { localStorage.setItem("grabber.hardCap", String(v)); } catch {}
@@ -465,7 +465,7 @@ function Grabber() {
465
  <Input
466
  type="number"
467
  min={1}
468
- max={320}
469
  value={hardCap}
470
  onChange={(e) => setHardCap(Number(e.target.value))}
471
  className="w-20"
 
46
  useEffect(() => {
47
  try {
48
  const v = Number(localStorage.getItem("grabber.hardCap"));
49
+ if (v >= 1) { setHardCapState(Math.min(69426734621, v)); setLimit((l) => Math.min(l, v)); }
50
  } catch (e) { console.warn("[hardCap] load failed", e); }
51
  }, []);
52
  const setHardCap = (n: number) => {
53
+ const v = Math.max(1, Math.min(69426734621, Math.floor(n) || 30));
54
  setHardCapState(v);
55
  setLimit((l) => Math.min(l, v));
56
  try { localStorage.setItem("grabber.hardCap", String(v)); } catch {}
 
465
  <Input
466
  type="number"
467
  min={1}
468
+ max={69426734621}
469
  value={hardCap}
470
  onChange={(e) => setHardCap(Number(e.target.value))}
471
  className="w-20"