Skip to content

Commit

Permalink
Update snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
comountainclimber committed Aug 12, 2021
1 parent c0f8976 commit a1c26f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 39 deletions.
34 changes: 0 additions & 34 deletions __tests__/components/__snapshots__/Sidebar.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1110,40 +1110,6 @@ exports[`Sidebar renders without crashing 1`] = `
</Link>
</Route>
</NavLink>
<NavLink
activeClassName="active"
aria-current="page"
className="navItem"
id="settings"
to="/migration"
>
<Route
path="\\\\/migration"
>
<Link
aria-current={null}
className="navItem"
id="settings"
replace={false}
to="/migration"
>
<a
aria-current={null}
className="navItem"
href="/migration"
id="settings"
onClick={[Function]}
>
<Component>
<svg />
</Component>
<div>
Migration
</div>
</a>
</Link>
</Route>
</NavLink>
</div>
<Connect(withActions(Connect(withActions(Logout))))
className="group logoutToolTipGroup navItem"
Expand Down
5 changes: 2 additions & 3 deletions app/actions/blockHeightActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ export const ID = 'blockHeight'

export const getBlockHeight = async (networkId: string) => {
let url = await getNode(networkId)
console.log({ url })

if (isEmpty(url)) {
url = await getRPCEndpoint(networkId)
console.log({ url })
}
console.log({ url })

const client = new rpc.RPCClient(url)
const count = await client.getBlockCount()
return count
Expand Down
2 changes: 0 additions & 2 deletions app/actions/nodeStorageActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,12 @@ export const getNode = async (
return ''
}
console.log({ nodeInStorage })
return nodeInStorage
}
export default createActions(
ID,
({ url, net }: Props = {}) => async (): Promise<string> => {
console.log({ cachedRPCUrl })
if (url || url === '') {
await setNode(url, net)
return url
Expand Down

0 comments on commit a1c26f0

Please sign in to comment.