Skip to content

Commit

Permalink
UI bug fixes (#265)
Browse files Browse the repository at this point in the history
* subgraph deployment fix

* handling non universal vault staker bug
  • Loading branch information
aalavandhan authored Feb 10, 2025
1 parent f39b546 commit e03be54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/GeysersList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const GeysersList = () => {
}

const optgroups = (() => {
const stakedGeysers = selectedVault ? selectedVault.locks.map((l) => l.geyser) : []
const stakedGeysers = selectedVault ? selectedVault.locks.map((l) => l.geyser).filter((g) => !!g) : []
let geysersToShow = geysers.filter((g) => g.active || stakedGeysers.find((s) => s.id === g.id))
if (geysersToShow.length === 0) {
geysersToShow = geysers.slice(0, 3)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Home = () => {
const { geysers, getGeyserConfig, allTokensInfos, stakeAPYs } = useContext(GeyserContext)
const { selectedVault } = useContext(VaultContext)
const navigate = useNavigate()
const stakedGeysers = selectedVault ? selectedVault.locks.map((l) => l.geyser) : []
const stakedGeysers = selectedVault ? selectedVault.locks.map((l) => l.geyser).filter((g) => !!g) : []
const tokensByAddress = allTokensInfos.reduce((acc, t) => {
acc[toChecksumAddress(t.address)] = t
return acc
Expand Down
3 changes: 1 addition & 2 deletions subgraph/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ yarn build

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

0 comments on commit e03be54

Please sign in to comment.