Skip to content

Commit

Permalink
[base] Fix readonly being applied twice for user color
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 44d654a commit e0ebe44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/base/src/user-color/useUserColor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {useUserColorManager} from './provider'
import {UserColor} from './types'
import React from 'react'

export function useUserColor(userId: string | null): Readonly<UserColor> | null {
export function useUserColor(userId: string | null): UserColor | null {
const manager = useUserColorManager()
return useObservable(
userId === null ? of(null) : React.useMemo(() => manager.listen(userId), [userId])
Expand Down

0 comments on commit e0ebe44

Please sign in to comment.