Skip to content

Commit

Permalink
Merge pull request #352 from zkLinkProtocol/fix/nova_points_error
Browse files Browse the repository at this point in the history
fix: nova points error
  • Loading branch information
zkLeonardo authored Aug 7, 2024
2 parents c753307 + 349f254 commit 330ada9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/Bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ export default function Bridge(props: IBridgeComponentProps) {
const priceInfo = allTokens.find(
(item) =>
item.symbol.toLowerCase() ===
tokenFiltered[tokenActive].symbol.toLowerCase()
tokenFiltered[tokenActive].symbol.toLowerCase() &&
item.networkKey === fromList[fromActive].networkKey
);
const ethPriceInfo = allTokens.find((item) => item.symbol === "ETH");
// const [priceInfo, ethPriceInfo] = await Promise.all([
Expand Down
8 changes: 7 additions & 1 deletion src/hooks/useTokenList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ export const useTokenBalanceList = () => {
const { networkKey } = useBridgeNetworkStore();
const { address: walletAddress } = useAccount();
const [allTokens, setAllTokens] = useState<
{ l1Address: string; iconURL: string; usdPrice: number; symbol: string }[]
{
l1Address: string;
iconURL: string;
usdPrice: number;
symbol: string;
networkKey: string;
}[]
>([]);

useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default defineConfig({
port: 3001,
proxy: {
"/app-api": {
target: "https://goerli.app.zklink.io",
// target: "https://app-api.zklink.io",
// target: "https://goerli.app.zklink.io",
target: "https://app-api.zklink.io",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/app-api/, ""),
},
Expand Down

0 comments on commit 330ada9

Please sign in to comment.