on master help sign in
Merge pull request #932 from urbit/t/903-invites-ui-shows-l1-booted-points

invites-ui: Show only unclaimed L2 invites in Invites view

commit169cfaf804c52b92e6bb6618c542c36ff7df6f94 authorjose <yosoyubik@gmail.com> dateThu 3 Feb 2022, 09:59 (5 years ago) parent0faeba085d3f5b
1 file changed+9−4
src/lib/useRoller.ts+9−4
src/lib/useRoller.ts+9−4
@@ -30,9 +30,13 @@ import {
3030 getTimeToNextBatch,
3131 registerProxyAddress,
3232 isL2Spawn,
33− isL2,
3433} from './utils/roller';
35−import { ETH_ZERO_ADDR, ROLLER_HOSTS, TEN_SECONDS } from './constants';
34+import {
35+ ETH_ZERO_ADDR,
36+ POINT_DOMINIONS,
37+ ROLLER_HOSTS,
38+ TEN_SECONDS,
39+} from './constants';
3640
3741import {
3842 Config,
@@ -408,8 +412,8 @@ export default function useRoller() {
408412
409413 if (
410414 invite.owner.toLowerCase() ===
411− planetInfo.ownership?.owner?.address ||
412− planetInfo.ownership?.transferProxy?.address !== ETH_ZERO_ADDR
415+ planetInfo.ownership?.owner?.address &&
416+ planetInfo.dominion === POINT_DOMINIONS.L2
413417 ) {
414418 newInvites.push(invite);
415419 updateInvite(curPoint, invite);
@@ -1064,6 +1068,7 @@ export default function useRoller() {
10641068 getPoints,
10651069 getPointsDetails,
10661070 getPendingTransactions,
1071+ initPoint,
10671072 ls,
10681073 performL2Reticket,
10691074 setProxyAddress,