about summary refs log tree commit diff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-03-01 01:57:48 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-03-01 01:57:48 +0100
commit3208979655a3b6872232aab82c82f90494858f9d (patch)
treeb667e36acad0cd0aa86b4fc575a955cfe5c71d45 /app/assets/javascripts
parentfbdb3bcf1ede96d97693165c485f1eabc44b9f8b (diff)
Fix typo
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/components/actions/compose.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/actions/compose.jsx b/app/assets/javascripts/components/actions/compose.jsx
index 54ec7b915..b7f225170 100644
--- a/app/assets/javascripts/components/actions/compose.jsx
+++ b/app/assets/javascripts/components/actions/compose.jsx
@@ -85,11 +85,11 @@ export function submitCompose() {
       dispatch(updateTimeline('home', { ...response.data }));
 
       if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {
-        if (getState.getIn(['timelines', 'community', 'loaded'])) {
+        if (getState().getIn(['timelines', 'community', 'loaded'])) {
           dispatch(updateTimeline('community', { ...response.data }));
         }
 
-        if (getState.getIn(['timelines', 'public', 'loaded'])) {
+        if (getState().getIn(['timelines', 'public', 'loaded'])) {
           dispatch(updateTimeline('public', { ...response.data }));
         }
       }