Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mwu2018 committed Sep 6, 2023
1 parent 498fe3d commit 0ba6cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ReactViews/Story/StoryPanel/StoryBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const StoryContainer = styled(Box).attrs((props: { isCollapsed: boolean }) => ({
}
`;

function areSourcesAllowed(story: Story) {
function sourcesAreAllowed(story: Story) {
let result = true;
const parser = new DOMParser();
const parsedDocument = parser.parseFromString(story.text, "text/html");
Expand All @@ -61,7 +61,7 @@ function areSourcesAllowed(story: Story) {
}

function sourceBasedParse(story: Story) {
if (areSourcesAllowed(story)) {
if (sourcesAreAllowed(story)) {
return parseCustomHtmlToReact(
story.text,
{ showExternalLinkWarning: true },
Expand Down

0 comments on commit 0ba6cdb

Please sign in to comment.