diff options
author | Dessalines <tyhou13@gmx.com> | 2019-11-22 16:18:10 -0800 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-11-22 16:18:10 -0800 |
commit | bf601b045863a3ac10f3129c5411a44786b54d95 (patch) | |
tree | 49fa26a2db6374246373a6f98603d532b57a445b /ui/src/components/community.tsx | |
parent | b29f578e31e030d6f28cb97a0c57b50cadd36255 (diff) |
Fixing issue with missing community.
- Fixes #339
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r-- | ui/src/components/community.tsx | 4 |
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; |