fix did type problems
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import React from 'react'
|
||||
import {
|
||||
DEFAULT_LABEL_SETTINGS,
|
||||
BskyAgent,
|
||||
DEFAULT_LABEL_SETTINGS,
|
||||
Did,
|
||||
interpretLabelValueDefinitions,
|
||||
} from '@atproto/api'
|
||||
|
||||
import {usePreferencesQuery} from './index'
|
||||
import {useLabelersDetailedInfoQuery} from '../labeler'
|
||||
import {usePreferencesQuery} from './index'
|
||||
|
||||
/**
|
||||
* More strict than our default settings for logged in users.
|
||||
@@ -21,7 +22,7 @@ export function useMyLabelersQuery() {
|
||||
const dids = Array.from(
|
||||
new Set(
|
||||
BskyAgent.appLabelers.concat(
|
||||
prefs.data?.moderationPrefs.labelers.map(l => l.did) || [],
|
||||
prefs.data?.moderationPrefs.labelers.map(l => l.did as Did) || [],
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user