Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong committed Dec 11, 2024
1 parent 19a32db commit f7dbe01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/controller/actions/group-kv.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { KV_QUEUE, ONLINE } from '~/frontend/utils/events.js'
sbp('okTurtles.events/on', ONLINE, async () => {
try {
const identityContractID = (await sbp('chelonia/rootState')).loggedIn?.identityContractID
if (identityContractID) {
if (identityContractID) { // check if the user is logged in before loading the data
await sbp('gi.actions/group/kv/load')
}
} catch (e) {}
Expand Down
2 changes: 1 addition & 1 deletion frontend/controller/actions/identity-kv.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const initNotificationStatus = (data = {}) => ({ ...data, read: false })
sbp('okTurtles.events/on', ONLINE, async () => {
try {
const identityContractID = (await sbp('chelonia/rootState')).loggedIn?.identityContractID
if (identityContractID) {
if (identityContractID) { // check if the user is logged in before loading the data
await sbp('gi.actions/identity/kv/load')
}
} catch (e) {}
Expand Down

0 comments on commit f7dbe01

Please sign in to comment.