diff --git a/package-lock.json b/package-lock.json
index b1f7fb3..55450f0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "blend-ui",
- "version": "1.2.0",
+ "version": "1.2.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "blend-ui",
- "version": "1.2.0",
+ "version": "1.2.1",
"dependencies": {
"@blend-capital/blend-sdk": "2.1.2",
"@creit.tech/stellar-wallets-kit": "1.2.3",
diff --git a/package.json b/package.json
index c5d79cf..32c3702 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "blend-ui",
- "version": "1.2.0",
+ "version": "1.2.1",
"private": true,
"type": "module",
"scripts": {
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 8e22811..b5f4008 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -15,9 +15,11 @@ const Markets: NextPage = () => {
const rewardZone = [...(backstop?.config?.rewardZone ?? [])].reverse();
+ const safeRewardZone = rewardZone.filter((poolId) => !blockedPools.includes(poolId));
+
function handlePoolLoaded(index: number) {
if (index >= currentIndex) {
- setCurrentIndex(Math.min(currentIndex + 1, rewardZone.length));
+ setCurrentIndex(Math.min(currentIndex + 1, safeRewardZone.length));
}
}
@@ -29,16 +31,15 @@ const Markets: NextPage = () => {
- {rewardZone.slice(0, currentIndex + 1).map((poolId, index) => {
- if (!blockedPools.includes(poolId))
- return (
-
- );
+ {safeRewardZone.slice(0, currentIndex + 1).map((poolId, index) => {
+ return (
+
+ );
})}
>
);