@@ -2,6 +2,7 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
22import * as azimuth from 'azimuth-js';
33import * as need from 'lib/need';
44import * as ob from 'urbit-ob';
5+import { Just } from 'folktale/maybe';
56
67import { Invite } from 'lib/types/Invite';
78import { convertToInt } from './convertToInt';
@@ -141,6 +142,11 @@ export default function useRoller() {
141142 throw new Error('Internal Error: Missing Contracts/Web3/Wallet');
142143 }
143144
145+ if (Just.hasInstance(authMnemonic)) {
146+ throw new Error(
147+ "Auth key Error: A management mnemonic can't create invite codes"
148+ );
149+ }
144150 const planets: UnspawnedPoints = await api.getUnspawned(_point);
145151 const starInfo = await api.getPoint(_point);
146152