about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/reducers/push_notifications.js
diff options
context:
space:
mode:
authorcwm <chriswmartin@protonmail.com>2018-01-09 09:48:14 -0600
committercwm <chriswmartin@protonmail.com>2018-01-09 09:48:14 -0600
commit6d1c325167d12300e86d678a054777acd5d3077a (patch)
tree900a6e4024d96da2e5b73540c97dbb772f685c80 /app/javascript/flavours/glitch/reducers/push_notifications.js
parent7f4374d97dd7dce6ec9f632a3cc8527490cbe2c6 (diff)
Rename key to path in actions and reducers for settings (tootsuite pr #6105)
Diffstat (limited to 'app/javascript/flavours/glitch/reducers/push_notifications.js')
-rw-r--r--app/javascript/flavours/glitch/reducers/push_notifications.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/push_notifications.js b/app/javascript/flavours/glitch/reducers/push_notifications.js
index 4eba2a5e8..1b47ca962 100644
--- a/app/javascript/flavours/glitch/reducers/push_notifications.js
+++ b/app/javascript/flavours/glitch/reducers/push_notifications.js
@@ -44,7 +44,7 @@ export default function push_subscriptions(state = initialState, action) {
   case CLEAR_SUBSCRIPTION:
     return initialState;
   case SET_ALERTS:
-    return state.setIn(action.key, action.value);
+    return state.setIn(action.path, action.value);
   default:
     return state;
   }