rename variable for clarity
This commit is contained in:
@@ -28,7 +28,7 @@ export interface ModerationCauseDescription {
|
||||
sourceType?: ModerationCauseSource['type']
|
||||
sourceAvi?: string
|
||||
sourceDid?: string
|
||||
subjectAccount?: boolean
|
||||
isSubjectAccount?: boolean
|
||||
}
|
||||
|
||||
export function useModerationCauseDescription(
|
||||
@@ -163,7 +163,7 @@ export function useModerationCauseDescription(
|
||||
sourceType: cause.source.type,
|
||||
sourceAvi: labeler?.creator.avatar,
|
||||
sourceDid: cause.label.src,
|
||||
subjectAccount: cause.label.uri.startsWith('did:'),
|
||||
isSubjectAccount: cause.label.uri.startsWith('did:'),
|
||||
}
|
||||
}
|
||||
// should never happen
|
||||
|
||||
Reference in New Issue
Block a user