Skip to content

Commit

Permalink
fix default devnet index
Browse files Browse the repository at this point in the history
  • Loading branch information
rjnrohit committed Nov 6, 2023
1 parent e7e55cc commit 29fb999
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugin/src/atoms/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { atom } from 'jotai'

import { type Devnet, devnets, type DevnetAccount } from '../utils/network'

const devnetAtom = atom<Devnet>(devnets[0])
const devnetAtom = atom<Devnet>(devnets[1])

export type Env = 'remoteDevnet' | 'wallet' | 'manual' | 'localDevnet'

Expand Down
12 changes: 7 additions & 5 deletions plugin/src/components/DevnetAccountSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,13 @@ const DevnetAccountSelector: React.FC = () => {
<D.Root open={dropdownControl} onOpenChange={(e) => { setDropdownControl(e) }}>
<D.Trigger >
<div className='flex flex-row justify-content-space-between align-items-center p-2 br-1 devnet-account-selector-trigger'>
<label className='text-light text-sm m-0'>{getShortenedHash(
availableDevnetAccounts[accountIdx]?.address ?? '',
6,
4
)}</label>
<label className='text-light text-sm m-0'>{((availableDevnetAccounts[accountIdx]?.address) !== undefined)
? getShortenedHash(
availableDevnetAccounts[accountIdx]?.address,
6,
4
)
: 'No accounts found'}</label>
<BsChevronDown style={{
transform: dropdownControl ? 'rotate(180deg)' : 'none',
transition: 'all 0.3s ease'
Expand Down

0 comments on commit 29fb999

Please sign in to comment.