Skip to content

Commit

Permalink
Merge pull request #289 from stabilitydao/4-vault
Browse files Browse the repository at this point in the history
AppStore API fix
  • Loading branch information
a17 authored Nov 1, 2024
2 parents dd04e97 + 4e785ba commit 227e7bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stability-ui",
"type": "module",
"version": "0.13.14-alpha",
"version": "0.13.15-alpha",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand Down
15 changes: 9 additions & 6 deletions src/layouts/AppStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ const AppStore = (props: React.PropsWithChildren): JSX.Element => {
},
Promise.resolve({})
);

localVaults[chainID] = APIVaults;
};

Expand Down Expand Up @@ -676,12 +677,14 @@ const AppStore = (props: React.PropsWithChildren): JSX.Element => {
const vaultsPromise = await Promise.all(
contractVaults[0].map(
async (vault: string, index: number) => {
return {
[vault.toLowerCase()]: {
...localVaults[chain.id][vault.toLowerCase()],
balance: contractBalance[5][index],
},
};
if (localVaults[chain.id][vault.toLowerCase()]) {
return {
[vault.toLowerCase()]: {
...localVaults[chain.id][vault.toLowerCase()],
balance: contractBalance[5][index],
},
};
}
}
)
);
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/vaults.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const STRATEGIES: string[] = [
"IRMF",
"CCF",
"GQMF",
"GRMF",
"TPF",
"GRMF",
];

const SORT_CASES = [
Expand Down

0 comments on commit 227e7bd

Please sign in to comment.