Skip to content

Commit e6ca2fd

Browse files
Yu Jin KangYu Jin Kang
authored andcommitted
copy update for diff
1 parent df15113 commit e6ca2fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app/components/Diff.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ import ReactHtmlParser from 'react-html-parser';
55

66
import { useStoreContext } from '../store';
77

8-
// FIX: Update the div copy to something more explanatory
9-
108
function Diff({ snapshot, show }) {
11-
const [mainState] = useStoreContext();
9+
const [ mainState ] = useStoreContext();
1210
const { currentTab, tabs } = mainState;
1311
const { snapshots, viewIndex, sliderIndex } = tabs[currentTab];
1412
let previous;
@@ -26,7 +24,7 @@ function Diff({ snapshot, show }) {
2624
if (show) formatters.html.showUnchanged();
2725
else formatters.html.hideUnchanged();
2826

29-
if (previous === undefined || delta === undefined) return <div> states are equal </div>;
27+
if (previous === undefined || delta === undefined) return <div> No state change detected. </div>;
3028
return (
3129
<div>
3230
{ ReactHtmlParser(html) }

0 commit comments

Comments
 (0)