Skip to content

Commit 9712e75

Browse files
committed
fix issue on store
1 parent 628ceb1 commit 9712e75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/renderer/src/store/root-store/setup-root-store.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ export async function setupRootStore() {
2828
const patchesFromMain: Array<string> = []
2929

3030
window.window.lindoAPI.subscribeToIPCPatch((patch: IJsonPatch) => {
31-
window.lindoAPI.logger.debug({ patch })()
31+
console.debug({ patch })
3232
patchesFromMain.push(hash(patch))
3333
applyPatch(rootStore, patch)
3434
})
3535

3636
onPatch(rootStore, (patch) => {
37-
window.lindoAPI.logger.info('onPatch', patch)()
37+
console.info('onPatch', patch)
3838
// ignore local storage patches
3939
if (patch.path.startsWith('/gameStore')) {
4040
return
4141
}
4242

4343
const patchHash = hash(patch)
4444
if (patchesFromMain.includes(patchHash)) {
45-
window.lindoAPI.logger.info('patch already applied ', patchHash)()
45+
console.info('patch already applied ', patchHash)
4646
patchesFromMain.splice(patchesFromMain.indexOf(patchHash), 1)
4747
return
4848
}

0 commit comments

Comments
 (0)