on master help sign in
invites-ui: only show L2 invites
a876e8dtomholford
src/lib/useRoller.ts+9−4
@@ -31,9 +31,13 @@ import {
31 getTimeToNextBatch,
31 getTimeToNextBatch,
32 registerProxyAddress,
32 registerProxyAddress,
33 isL2Spawn,
33 isL2Spawn,
34− isL2,
35} from './utils/roller';
34} from './utils/roller';
36−import { ETH_ZERO_ADDR, ROLLER_HOSTS, TEN_SECONDS } from './constants';
35+import {
36+ ETH_ZERO_ADDR,
37+ POINT_DOMINIONS,
38+ ROLLER_HOSTS,
39+ TEN_SECONDS,
40+} from './constants';
37
41
38import {
42import {
39 Config,
43 Config,
@@ -428,9 +432,10 @@ export default function useRoller() {
428 }
432 }
429
433
430 if (
434 if (
431− invite.owner.toLowerCase() ===
435+ (invite.owner.toLowerCase() ===
432 planetInfo.ownership?.owner?.address ||
436 planetInfo.ownership?.owner?.address ||
433− planetInfo.ownership?.transferProxy?.address !== ETH_ZERO_ADDR
437+ planetInfo.ownership?.transferProxy?.address !== ETH_ZERO_ADDR) &&
438+ planetInfo.dominion === POINT_DOMINIONS.L2
434 ) {
439 ) {
435 newInvites.push(invite);
440 newInvites.push(invite);
436 updateInvite(curPoint, invite);
441 updateInvite(curPoint, invite);