Skip to content

Commit

Permalink
Merge pull request #80 from reflexer-labs/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mstfash authored Feb 16, 2021
2 parents a4447b5 + fd3083a commit a5e14ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/ConnectedWalletInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ConnectedWalletInfo = () => {
const { t } = useTranslation()
const { ethereum } = window

const connections = ['Subgraph', 'Infura RPC']
const connections = ['Subgraph Endpoint', 'RPC Endpoint']

const { active, account, connector, chainId } = useWeb3React()

Expand Down Expand Up @@ -160,7 +160,7 @@ const ConnectedWalletInfo = () => {
{t('block_connection')}
<Dropdown
padding={'10px'}
width={'150px'}
width={'170px'}
fontSize={'14px'}
items={connections}
itemSelected={selectedConnection}
Expand Down
8 changes: 5 additions & 3 deletions src/model/settingsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@ export interface SettingsModel {
setBlockBody: Action<SettingsModel, boolean>
setIsRPCAdapterOn: Action<SettingsModel, boolean>
}
const blockchain_connection = localStorage.getItem('blockchain_connection')
const local_blockchain_connection = localStorage.getItem(
'blockchain_connection'
)

const settingsModel: SettingsModel = {
isLightTheme: isLight ? JSON.parse(isLight) : true,
lang: language || 'en',
bodyOverflow: false,
blockBody: false,
isRPCAdapterOn: blockchain_connection
? blockchain_connection.toLowerCase().includes('infura')
isRPCAdapterOn: local_blockchain_connection
? local_blockchain_connection.toLowerCase().includes('rpc')
: false,
setIsLightTheme: action((state, payload) => {
state.isLightTheme = payload
Expand Down

0 comments on commit a5e14ae

Please sign in to comment.