Let the async lock cook
This commit is contained in:
@@ -122,10 +122,7 @@ export function useLabelerSubscriptionMutation() {
|
||||
}
|
||||
}
|
||||
if (invalidLabelers.length) {
|
||||
for (const did of invalidLabelers) {
|
||||
// remove sequentially, not concurrently, due to prefs issues
|
||||
await agent.removeLabeler(did)
|
||||
}
|
||||
await Promise.all(invalidLabelers.map(did => agent.removeLabeler(did)))
|
||||
}
|
||||
|
||||
if (subscribe) {
|
||||
|
||||
Reference in New Issue
Block a user