fix duplicate activity feed

This commit is contained in:
tjs 2022-12-20 00:33:43 -05:00
parent 9efd48f12f
commit 19a7ddc04c
1 changed files with 7 additions and 0 deletions

View File

@ -472,6 +472,13 @@ const mangoStore = create<MangoStore>()(
const connectedMangoAccountPk = mangoStore
.getState()
.mangoAccount.current?.publicKey.toString()
if (offset === 0) {
set((state) => {
state.activityFeed.feed = []
})
}
try {
const response = await fetch(
`https://mango-transaction-log.herokuapp.com/v4/stats/activity-feed?mango-account=${mangoAccountPk}&offset=${offset}&limit=25${