on master help sign in
sigil: check patp has sigil before render
1b19a2dLiam Fitzgerald
src/components/MaybeSigil.js+2−1
@@ -10,7 +10,8 @@ import AspectRatio from './AspectRatio';
10export default function MaybeSigil({ className, patp, size, ...rest }) {
10export default function MaybeSigil({ className, patp, size, ...rest }) {
11 const validPatp = patp.matchWith({
11 const validPatp = patp.matchWith({
12 Nothing: () => null,
12 Nothing: () => null,
13+ Just: p =>
13− Just: p => (ob.isValidPatp(p.value) ? p.value : null),
14+ (ob.isValidPatp(p.value) && p.value.length) < 15 ? p.value : null,
14 });
15 });
15
16
16 return validPatp ? (
17 return validPatp ? (
src/views/UrbitOS/Home.js+6−4
@@ -180,14 +180,16 @@ function Hosting({ manualNetworkSeed }) {
180 }
180 }
181 }, [
181 }, [
182 localRunning,
182 localRunning,
183− ship.missing,
184 ship.running,
183 ship.running,
184+ ship.missing,
185 ship.pending,
185 ship.pending,
186− bootProgress,
186+ localUrl,
187− bootMessage,
187+ code,
188+ url,
188 keyfile,
189 keyfile,
189 createShip,
190 createShip,
190− url,
191+ bootProgress,
192+ bootMessage,
191 ]);
193 ]);
192
194
193 const renderDetails = useCallback(() => {
195 const renderDetails = useCallback(() => {