summaryrefslogtreecommitdiffstats
path: root/ui/src/components/community.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-11-22 16:18:10 -0800
committerDessalines <tyhou13@gmx.com>2019-11-22 16:18:10 -0800
commitbf601b045863a3ac10f3129c5411a44786b54d95 (patch)
tree49fa26a2db6374246373a6f98603d532b57a445b /ui/src/components/community.tsx
parentb29f578e31e030d6f28cb97a0c57b50cadd36255 (diff)
Fixing issue with missing community.
- Fixes #339
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r--ui/src/components/community.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index 8f36178c..cfeff085 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -25,7 +25,8 @@ import {
fetchLimit,
postRefetchSeconds,
} from '../utils';
-import { T, i18n } from 'inferno-i18next';
+import { T } from 'inferno-i18next';
+import { i18n } from '../i18next';
interface State {
community: CommunityI;
@@ -252,6 +253,7 @@ export class Community extends Component<any, State> {
let op: UserOperation = msgOp(msg);
if (msg.error) {
alert(i18n.t(msg.error));
+ this.context.router.history.push('/');
return;
} else if (op == UserOperation.GetCommunity) {
let res: GetCommunityResponse = msg;