Skip to content

Commit

Permalink
fix operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jnptk committed Mar 4, 2024
1 parent a52ee83 commit 51f49e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const View = (props) => {
slateSettings: {
...config.settings.slate,
toolbarButtons: config.settings.slate.toolbarButtons.filter(
(index) => index - config.settings.slate.toolbarButtons,
(index) => index - config.settings.slate.toolbarButtons
),
},
};
Expand All @@ -37,7 +37,9 @@ const View = (props) => {
<blockquote
className={data.plaintext?.length < 1 && 'isEmpty'}
cite={data.cite}
lang={data.quotationLanguage != intl.locale && data.quotationLanguage}
lang={
data.quotationLanguage !== intl.locale && data.quotationLanguage
}
>
{!isEditMode ? (
<TextBlockView {...props} />
Expand Down

0 comments on commit 51f49e1

Please sign in to comment.