diff --git a/frontend/src/Documents/SharedView.tsx b/frontend/src/Documents/SharedView.tsx
index 92879d0..49c6bd1 100644
--- a/frontend/src/Documents/SharedView.tsx
+++ b/frontend/src/Documents/SharedView.tsx
@@ -46,39 +46,38 @@ export class SharedViewComponent extends React.PureComponent<
}
public render() {
- if (this.state.loaded) {
- if (this.state.error) {
- return (
-
- );
- }
- const { loggedIn, user } = this.props;
- const { doc } = this.state;
- if (loggedIn && user.id === doc.user) {
- return ;
- }
- return (
-
- );
- } else {
+ if (!this.state.loaded) {
return ;
}
+ if (this.state.error) {
+ return (
+
+ );
+ }
+ const { loggedIn, user } = this.props;
+ const { doc } = this.state;
+ if (loggedIn && user.id === doc.user) {
+ return ;
+ }
+ return (
+
+ );
}
public async componentDidMount() {