summaryrefslogtreecommitdiffstats
path: root/src/store
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-05-03 21:13:50 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2023-05-08 01:39:16 +0200
commit778add58f47a488fce3caaa7d4f4800351b0bdd0 (patch)
treeb9fb911d7521b54ab7256fb32b4b6a66aadec54e /src/store
parent085c461581afc46a9fc0708600e37835c834ddf2 (diff)
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 <danxuliu@gmail.com>
Diffstat (limited to 'src/store')
-rw-r--r--src/store/tokenStore.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/tokenStore.js b/src/store/tokenStore.js
index b5187f006..ca31a343b 100644
--- a/src/store/tokenStore.js
+++ b/src/store/tokenStore.js
@@ -44,7 +44,7 @@ const getters = {
getFileIdForToken: (state) => () => {
return state.fileIdForToken
},
- currentConversationIsJoined() {
+ currentConversationIsJoined: (state) => {
return state.lastJoinedConversationToken === state.token
},
}