Skip to content

Commit

Permalink
feat: Update SDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
karanpargal committed Oct 31, 2024
1 parent 00176c9 commit 72c535d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"vite-plugin-dts": "^3.8.2"
},
"dependencies": {
"@covalenthq/client-sdk": "^2.1.2",
"@covalenthq/client-sdk": "^2.2.0",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
Expand Down
6 changes: 0 additions & 6 deletions src/components/Molecules/ChainSelector/ChainSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ export const ChainSelector: React.FC<ChainSelectorProps> = ({

if (!chain_options.length) {
chains.forEach((chain: ChainItem) => {
// @ts-expect-error Priority Label yet to be added to the ChainItem type
if (chain.name && chain.priority_label === "Foundational") {
foundational.push(chain);
// @ts-expect-error Priority Label yet to be added to the ChainItem type
} else if (chain.name && chain.priority_label === "Frontier") {
frontier.push(chain);
} else {
Expand Down Expand Up @@ -80,18 +78,14 @@ export const ChainSelector: React.FC<ChainSelectorProps> = ({
});
return {
foundational: selectedChains.filter(
// @ts-expect-error Priority Label yet to be added to the ChainItem type
(chain) => chain.priority_label === "Foundational",
),
frontier: selectedChains.filter(
// @ts-expect-error Priority Label yet to be added to the ChainItem type
(chain) => chain.priority_label === "Frontier",
),
community: selectedChains.filter(
(chain) =>
// @ts-expect-error Priority Label yet to be added to the ChainItem type
chain.priority_label !== "Foundational" &&
// @ts-expect-error Priority Label yet to be added to the ChainItem type
chain.priority_label !== "Frontier",
),
};
Expand Down

0 comments on commit 72c535d

Please sign in to comment.