Skip to content

Commit 4c5b1a5

Browse files
committed
Use constant for SNAPSHOT
1 parent c5426f1 commit 4c5b1a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Dispatcher from './dispatcher'
2+
import { UPDATE_SNAPSHOT } from './constants'
23

34
export { isGossipType } from './dispatcher'
45
export {
@@ -138,4 +139,4 @@ function connectStreams(io, createStream) {
138139
// devToolsStateSanitizer can be applied to the devToolsExtension
139140
// as the stateSanitizer to show correctly the store state instead
140141
// of showing the internal representation of redux-scuttlebutt
141-
export const devToolsStateSanitizer = (state) => state.slice(-1)[0][3]
142+
export const devToolsStateSanitizer = (state) => state.slice(-1)[0][UPDATE_SNAPSHOT]

0 commit comments

Comments
 (0)