diff --git a/package-lock.json b/package-lock.json index 9445e18..c0b97d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "hyperspace", - "version": "1.1.0", + "version": "1.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/pages/About.tsx b/src/pages/About.tsx index 6684a6d..af59f8a 100644 --- a/src/pages/About.tsx +++ b/src/pages/About.tsx @@ -85,6 +85,18 @@ class AboutPage extends Component { this.setState({ hyperspaceAdmin: account, hyperspaceAdminName: config.admin.name, + }); + }) + .catch((err: Error) => { + console.error(err.message); + if (true) { + this.setState({ + hyperspaceAdminName: `Could not find ${config.admin.name} on ${config.registration.defaultInstance}` + }); + } + }) + .finally(() => { + this.setState({ federation: config.federation, developer: config.developer ? config.developer : false, versionNumber: config.version, @@ -98,9 +110,6 @@ class AboutPage extends Component { }, repository: config.repository }); - }) - .catch((err: Error) => { - console.error(err.message); }); }); } @@ -164,7 +173,9 @@ class AboutPage extends Component { - { > + : + + + + + } + { this.state.hyperspaceAdmin .display_name || "@" + this.state.hyperspaceAdmin.acct - : "No provider set in config" + : + this.state.hyperspaceAdminName + ?? "No provider set in config" } /> - + { + this.state.hyperspaceAdmin? + { + : null + }