Skip to content

Commit 9d270d8

Browse files
committed
Fix getter reading global state rather than the given one
In normal usage this seems to work as expected, but it failed when using custom instances of the stores in tests (both the token of the last joined conversation and the current token were undefined). Signed-off-by: Daniel Calviño Sánchez <[email protected]>
1 parent 7ba2112 commit 9d270d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/tokenStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const getters = {
4444
getFileIdForToken: (state) => () => {
4545
return state.fileIdForToken
4646
},
47-
currentConversationIsJoined() {
47+
currentConversationIsJoined: (state) => {
4848
return state.lastJoinedConversationToken === state.token
4949
},
5050
}

0 commit comments

Comments
 (0)