@@ -2,6 +2,7 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
2import * as azimuth from 'azimuth-js';
2import * as azimuth from 'azimuth-js';
3import * as need from 'lib/need';
3import * as need from 'lib/need';
4import * as ob from 'urbit-ob';
4import * as ob from 'urbit-ob';
5+import { Just } from 'folktale/maybe';
6import { Invite } from 'lib/types/Invite';
7import { Invite } from 'lib/types/Invite';
7import { convertToInt } from './convertToInt';
8import { convertToInt } from './convertToInt';
@@ -141,6 +142,11 @@ export default function useRoller() {
141 throw new Error('Internal Error: Missing Contracts/Web3/Wallet');
142 throw new Error('Internal Error: Missing Contracts/Web3/Wallet');
145+ if (Just.hasInstance(authMnemonic)) {
147+ "Auth key Error: A management mnemonic can't create invite codes"
144 const planets: UnspawnedPoints = await api.getUnspawned(_point);
150 const planets: UnspawnedPoints = await api.getUnspawned(_point);
145 const starInfo = await api.getPoint(_point);
151 const starInfo = await api.getPoint(_point);