@@ -20,6 +20,7 @@ import { PROXY_TYPE, proxyTypeToHuman } from 'lib/proxy';
2020import { useLocalRouter } from 'lib/LocalRouter';
2121import { formatDots } from 'lib/dateFormat';
2222import capitalize from 'lib/capitalize';
23+import { eqAddr } from 'lib/wallet';
2324
2425//TODO consolidate with azimuth-js' getActivationBlock
2526const getRekeyDate = async (web3, contracts, point) => {
@@ -44,6 +45,8 @@ export default function AdminEditPermissions() {
4445 const { pointCursor } = usePointCursor();
4546 const { getDetails } = usePointCache();
4647
48+ const _contracts = need.contracts(contracts);
49+
4750 const [rekeyDate, setRekeyDate] = useState(Nothing());
4851
4952 const point = need.point(pointCursor);
@@ -56,12 +59,10 @@ export default function AdminEditPermissions() {
5659 const { canManage, isOwner } = usePermissionsForPoint(userAddress, point);
5760
5861 useLifecycle(() => {
59− getRekeyDate(need.web3(web3), need.contracts(contracts), point).then(
60− res => {
61− if (res === null) setRekeyDate(Just(new Date()));
62− else setRekeyDate(Just(res));
63− }
64− );
62+ getRekeyDate(need.web3(web3), _contracts, point).then(res => {
63+ if (res === null) setRekeyDate(Just(new Date()));
64+ else setRekeyDate(Just(res));
65+ });
6566 });
6667
6768 const goToProxy = useCallback(
@@ -72,8 +73,10 @@ export default function AdminEditPermissions() {
7273 const goSetKeys = useCallback(() => push(names.SET_KEYS), [push, names]);
7374
7475 const proxyAction = (proxyType, address, enabled) => {
75− if (address === ETH_ZERO_ADDR) {
76+ if (eqAddr(address, ETH_ZERO_ADDR)) {
7677 address = 'Not yet set';
78+ } else if (eqAddr(address, _contracts.delegatedSending.address)) {
79+ address = address + ' (invites contract)';
7780 }
7881
7982 const detail = enabled