@@ -40,6 +40,7 @@ import {
4040import BridgeForm from 'form/BridgeForm';
4141import Condition from 'form/Condition';
4242import FormError from 'form/FormError';
43+import convertToInt from 'lib/convertToInt';
4344
4445const chainKeyProp = name => d =>
4546 d[name] === CURVE_ZERO_ADDR ? Nothing() : Just(d[name]);
@@ -64,7 +65,7 @@ function useSetKeys() {
6465 const _contracts = need.contracts(contracts);
6566 const _details = need.details(getDetails(_point));
6667
67− const networkRevision = parseInt(_details.keyRevisionNumber, 10);
68+ const networkRevision = convertToInt(_details.keyRevisionNumber, 10);
6869 const randomSeed = useRef();
6970
7071 // NOTE: nd = 'nondeterministic' (can also be a 'manual' seed)
@@ -151,6 +152,8 @@ export default function AdminNetworkingKeys() {
151152 const hasKeys = details.matchWith({
152153 Nothing: () => false,
153154 Just: ({ value: details }) => parseInt(details.keyRevisionNumber, 10) > 0,
155+ // we actually don't mind the default NaN behavior of parseInt here,
156+ // since NaN > 0 === false and that's a reasonable result
154157 });
155158
156159 const {