Skip to content

Commit

Permalink
Fix typos in error messages (ianstormtaylor#5179)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverWales authored Nov 8, 2022
1 parent 469bec3 commit e61678d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/slate-react/src/components/slate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ export const Slate = (props: {
const [context, setContext] = React.useState<SlateContextValue>(() => {
if (!Node.isNodeList(value)) {
throw new Error(
`[Slate] value is invalid! Expected a list of elements` +
`but got: ${Scrubber.stringify(value)}`
`[Slate] value is invalid! Expected a list of elements but got: ${Scrubber.stringify(
value
)}`
)
}
if (!Editor.isEditor(editor)) {
throw new Error(
`[Slate] editor is invalid! you passed:` +
`${Scrubber.stringify(editor)}`
`[Slate] editor is invalid! You passed: ${Scrubber.stringify(editor)}`
)
}
editor.children = value
Expand Down

0 comments on commit e61678d

Please sign in to comment.