Skip to content

Commit e03be54

Browse files
authored
UI bug fixes (#265)
* subgraph deployment fix * handling non universal vault staker bug
1 parent f39b546 commit e03be54

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

frontend/src/components/GeysersList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const GeysersList = () => {
2121
}
2222

2323
const optgroups = (() => {
24-
const stakedGeysers = selectedVault ? selectedVault.locks.map((l) => l.geyser) : []
24+
const stakedGeysers = selectedVault ? selectedVault.locks.map((l) => l.geyser).filter((g) => !!g) : []
2525
let geysersToShow = geysers.filter((g) => g.active || stakedGeysers.find((s) => s.id === g.id))
2626
if (geysersToShow.length === 0) {
2727
geysersToShow = geysers.slice(0, 3)

frontend/src/components/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Home = () => {
1717
const { geysers, getGeyserConfig, allTokensInfos, stakeAPYs } = useContext(GeyserContext)
1818
const { selectedVault } = useContext(VaultContext)
1919
const navigate = useNavigate()
20-
const stakedGeysers = selectedVault ? selectedVault.locks.map((l) => l.geyser) : []
20+
const stakedGeysers = selectedVault ? selectedVault.locks.map((l) => l.geyser).filter((g) => !!g) : []
2121
const tokensByAddress = allTokensInfos.reduce((acc, t) => {
2222
acc[toChecksumAddress(t.address)] = t
2323
return acc

subgraph/scripts/deploy.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ yarn build
99

1010
yarn graph deploy $2 \
1111
--node https://subgraphs.alchemy.com/api/subgraphs/deploy \
12-
--deploy-key $GRAPH_AUTH \
13-
--ipfs https://ipfs.satsuma.xyz
12+
--deploy-key $GRAPH_AUTH

0 commit comments

Comments
 (0)