Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small cleanup #95

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/stores/useHoloStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import WebSdk from '@holo-host/web-sdk'
import { defineStore } from 'pinia'
import useIsLoadingStore from './useIsLoadingStore'
import useSignalStore from './useSignalStore'
import { fetchAgentKycLevel } from '../services/hbs'
import { emptyHappStatistics } from 'src/utils/hAppStatistics'

const msgpack = require('@msgpack/msgpack')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you need to add these? I don't see them being used anywhere.


let client

Expand All @@ -18,7 +22,7 @@ const makeUseHoloStore = ({ connectionArgs, MockWebSdk, addClientToWindow }) =>
getters: {
isAnonymous: state => state.agentState && state.agentState.isAnonymous,
isAvailable: state => state.agentState && state.agentState.isAvailable,
isLoggedIn: state => state.agentState && state.agentState.isAnonymous === false && state.agentState.isAvailable === true,
isLoggedIn: state => !state.agentState?.isAnonymous && state.agentState?.isAvailable === true,
error: state => state.agentState && !state.agentState.isAvailable && (state.connectionError || state.agentState.unrecoverableError),
agentKey: (state) => state.appInfo?.agent_pub_key,
agentId: state => state.agentState?.id,
Expand Down
Loading