on master help sign in
Don't let planets set spawn proxies
commitd442ef05888a0fe46aec2d2b34242004488272d3 authorFang <Fang-@users.noreply.github.com> dateMon 17 Jun 2019, 23:39 (7 years ago) parent394090a
1 file changed+4−4
src/bridge/views/Point/Actions.js+4−4
src/bridge/views/Point/Actions.js+4−4
@@ -20,6 +20,9 @@ function Actions(props) {
2020
2121 const addr = need.address({ wallet });
2222
23+ const planet = isPlanet(point);
24+ const star = isStar(point);
25+
2326 const isOwner = pointDetails.matchWith({
2427 Nothing: _ => false,
2528 Just: details => eqAddr(details.value.owner, addr),
@@ -29,7 +32,7 @@ function Actions(props) {
2932 Just: details => details.value.active,
3033 });
3134 const isActiveOwner = isOwner && isActive;
32− const canSetSpawnProxy = isActiveOwner;
35+ const canSetSpawnProxy = isActiveOwner && !planet;
3336 const canSetManagementProxy = isActiveOwner;
3437
3538 const canManage =
@@ -58,9 +61,6 @@ function Actions(props) {
5861 Just: count => count.value > 0,
5962 });
6063
61− const planet = isPlanet(point);
62− const star = isStar(point);
63−
6464 const canTransfer = pointDetails.matchWith({
6565 Nothing: () => false,
6666 Just: deets =>