From 1fa0eb3ad2485f6ed519229cb24fb167fdb07df0 Mon Sep 17 00:00:00 2001 From: sungjk Date: Tue, 12 Jun 2018 06:05:49 -0700 Subject: [PATCH] Fix typo in reducers (#34) Summary: Fixed typos in reducers Closes https://github.com/facebook/Sonar/pull/34 Differential Revision: D8379211 Pulled By: danielbuechele fbshipit-source-id: d1dc6ff80963b931a3d8b1e4abe0f40ade3ba67f --- src/reducers/application.js | 4 ++-- src/reducers/devices.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/reducers/application.js b/src/reducers/application.js index 357dccff4..528847deb 100644 --- a/src/reducers/application.js +++ b/src/reducers/application.js @@ -29,7 +29,7 @@ export type Action = { payload?: boolean, }; -const INITAL_STATE: State = { +const INITIAL_STATE: State = { leftSidebarVisible: true, rightSidebarVisible: true, rightSidebarAvailable: false, @@ -39,7 +39,7 @@ const INITAL_STATE: State = { }; export default function reducer( - state: State = INITAL_STATE, + state: State = INITIAL_STATE, action: Action, ): State { const newValue = diff --git a/src/reducers/devices.js b/src/reducers/devices.js index 17e2a8d05..763d68c13 100644 --- a/src/reducers/devices.js +++ b/src/reducers/devices.js @@ -18,10 +18,10 @@ export type Action = payload: BaseDevice, }; -const INITAL_STATE: State = []; +const INITIAL_STATE: State = []; export default function reducer( - state: State = INITAL_STATE, + state: State = INITIAL_STATE, action: Action, ): State { switch (action.type) {