Skip to content

Commit

Permalink
show console
Browse files Browse the repository at this point in the history
  • Loading branch information
p6te committed Nov 20, 2024
1 parent e415196 commit 99d4188
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/store/sagas/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { actions as positionsActions } from '@store/reducers/positions'
import { BN } from '@project-serum/anchor'
import { WalletAdapter } from '@utils/web3/adapters/types'
import { getTokenDetails } from './token'
import { accounts, status } from '@store/selectors/solanaWallet'
import { accounts, status, status } from '@store/selectors/solanaWallet'

Check failure on line 28 in src/store/sagas/wallet.ts

View workflow job for this annotation

GitHub Actions / lint

Duplicate identifier 'status'.

Check failure on line 28 in src/store/sagas/wallet.ts

View workflow job for this annotation

GitHub Actions / lint

Duplicate identifier 'status'.
import { airdropQuantities, airdropTokens, WRAPPED_SOL_ADDRESS } from '@store/consts/static'
import { Token as StoreToken } from '@store/consts/types'
import airdropAdmin from '@store/consts/airdropAdmin'
Expand Down Expand Up @@ -388,11 +388,15 @@ export function* init(isEagerConnect: boolean): Generator {
// }
const wallet2 = yield* call(getWallet)
yield* put(actions.setStatus(Status.Init))
console.log('wallet2.connected', wallet2.connected)

if (!wallet2.connected) {
yield* put(actions.setStatus(Status.Uninitialized))
return
}
const statusWallet = yield* select(status)
console.log('statusWallet', statusWallet)

if (isEagerConnect) {
yield* put(
snackbarsActions.add({
Expand Down Expand Up @@ -475,7 +479,7 @@ export function* handleDisconnect(): Generator {
}

export function* connectHandler(): Generator {
yield takeLatest(actions.connect, handleConnect)
yield takeLeading(actions.connect, handleConnect)
}

export function* disconnectHandler(): Generator {
Expand Down

0 comments on commit 99d4188

Please sign in to comment.