on master help sign in
Merge pull request #932 from urbit/t/903-invites-ui-shows-l1-booted-points
169cfafjose
src/lib/useRoller.ts+9−4
@@ -30,9 +30,13 @@ import {
30 getTimeToNextBatch,
30 getTimeToNextBatch,
31 registerProxyAddress,
31 registerProxyAddress,
32 isL2Spawn,
32 isL2Spawn,
33− isL2,
34} from './utils/roller';
33} 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';
36
40
37import {
41import {
38 Config,
42 Config,
@@ -408,8 +412,8 @@ export default function useRoller() {
408
412
409 if (
413 if (
410 invite.owner.toLowerCase() ===
414 invite.owner.toLowerCase() ===
411− planetInfo.ownership?.owner?.address ||
415+ planetInfo.ownership?.owner?.address &&
412− planetInfo.ownership?.transferProxy?.address !== ETH_ZERO_ADDR
416+ planetInfo.dominion === POINT_DOMINIONS.L2
413 ) {
417 ) {
414 newInvites.push(invite);
418 newInvites.push(invite);
415 updateInvite(curPoint, invite);
419 updateInvite(curPoint, invite);
@@ -1064,6 +1068,7 @@ export default function useRoller() {
1064 getPoints,
1068 getPoints,
1065 getPointsDetails,
1069 getPointsDetails,
1066 getPendingTransactions,
1070 getPendingTransactions,
1071+ initPoint,
1067 ls,
1072 ls,
1068 performL2Reticket,
1073 performL2Reticket,
1069 setProxyAddress,
1074 setProxyAddress,