From ecae879a1af2f8d16c0c32b7d2f95122d3333454 Mon Sep 17 00:00:00 2001 From: Jon Cursi Date: Sun, 29 Oct 2017 16:40:01 -0400 Subject: [PATCH] Fixes https://github.com/orionsoft/meteor-apollo-accounts/issues/73 --- client/src/store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/store.js b/client/src/store.js index ef3e04a..3cb565e 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -37,7 +37,8 @@ export const getUserId = async function () { const tokenDidChange = async function () { const newData = await tokenStore.get() - for (const callback of onChangeCallbacks) { + for (let i = 0; i < onChangeCallbacks.length; i +=1) { + const callback = onChangeCallbacks[i]; callback(newData) } }