From f263fa9a8054d87c00e4d9eeefe56de0e3d559e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Iv=C3=A1n=20Vieitez=20Parra?= <3857362+corrideat@users.noreply.github.com> Date: Tue, 3 Dec 2024 18:03:50 +0000 Subject: [PATCH] Fixes --- frontend/controller/serviceworkers/sw-primary.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/controller/serviceworkers/sw-primary.js b/frontend/controller/serviceworkers/sw-primary.js index 26b39e3f7..80bf4cbf8 100644 --- a/frontend/controller/serviceworkers/sw-primary.js +++ b/frontend/controller/serviceworkers/sw-primary.js @@ -113,7 +113,7 @@ sbp('sbp/selectors/register', { let obj return () => { if (!obj) { - const obj = Object.create(null) + obj = Object.create(null) Object.defineProperties(obj, Object.fromEntries(Object.entries(getters).map(([getter, fn]: [string, Function]) => { return [getter, { get: () => { @@ -292,7 +292,7 @@ sbp('okTurtles.events/on', KV_EVENT, ({ contractID, key, data }) => { default: return } - sbp('okTurtles.events/on', CHELONIA_STATE_MODIFIED) + sbp('okTurtles.events/emit', CHELONIA_STATE_MODIFIED) }) sbp('okTurtles.events/on', NEW_CHATROOM_UNREAD_POSITION, ({ chatRoomID, messageHash }) => { @@ -308,5 +308,5 @@ sbp('okTurtles.events/on', NEW_CHATROOM_UNREAD_POSITION, ({ chatRoomID, messageH delete rootState.chatroom.chatRoomScrollPosition[chatRoomID] } - sbp('okTurtles.events/on', CHELONIA_STATE_MODIFIED) + sbp('okTurtles.events/emit', CHELONIA_STATE_MODIFIED) })