Skip to content

Commit

Permalink
Migrate to Lens v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoginth committed Dec 16, 2024
1 parent 02292cc commit dbd850d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
6 changes: 3 additions & 3 deletions apps/web/src/components/Account/FollowersYouKnowOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ const FollowersYouKnowOverview: FC<FollowersYouKnowOverviewProps> = ({
return null;
}

const accountOne = accounts[0].follower;
const accountTwo = accounts[1].follower;
const accountThree = accounts[2].follower;
const accountOne = accounts[0]?.follower;
const accountTwo = accounts[1]?.follower;
const accountThree = accounts[2]?.follower;

if (accounts?.length === 1) {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Transaction: FC<{ transaction: OptimisticTransaction }> = ({
return removeTransaction(transaction.txHash as string);
}
},
pollInterval: 3000,
pollInterval: 1000,
variables: { request: { txHash: transaction.txHash } }
});

Expand Down
8 changes: 0 additions & 8 deletions packages/indexer/apollo/cache/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
import { InMemoryCache } from '@apollo/client';
import result from '../../generated';
import createPostsFieldPolicy from './createPostsFieldPolicy';

const cache = new InMemoryCache({
possibleTypes: result.possibleTypes,
typePolicies: {
Query: {
fields: {
posts: createPostsFieldPolicy()
}
}
}
});

export default cache;

0 comments on commit dbd850d

Please sign in to comment.