{
+ return { error };
+ }
+
+ componentDidUpdate (prevProps: Props) {
+ const { error } = this.state;
+ const { trigger } = this.props;
+
+ if (error !== null && (prevProps.trigger !== trigger)) {
+ this.setState({ error: null });
+ }
+ }
+
+ goHome = () => {
+ this.setState({ error: null });
+ window.location.hash = '/';
+ };
+
+ public render (): React.ReactNode {
+ const { children, t } = this.props;
+ const { error } = this.state;
+
+ return error
+ ? (
+ <>
+