Don't invalidate myClaimIds everytime

This commit is contained in:
infinite-persistence 2021-11-04 11:28:14 +08:00
parent 59db2860d7
commit 4876ad8671
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -197,7 +197,7 @@ function handleClaimAction(state: State, action: any): State {
claimsByUri: byUri, claimsByUri: byUri,
channelClaimCounts, channelClaimCounts,
resolvingUris: Array.from(newResolvingUrls), resolvingUris: Array.from(newResolvingUrls),
myClaims: Array.from(myClaimIds), ...(!state.myClaims || myClaimIds.size !== state.myClaims.length ? { myClaims: Array.from(myClaimIds) } : {}),
}); });
} }