Skip to content

Commit 07a7613

Browse files
committed
diff displays states are equal if setState didnt really change the state
1 parent 1e1b368 commit 07a7613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/Diff.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Diff({ snapshot, show }) {
2424
if (show) formatters.html.showUnchanged();
2525
else formatters.html.hideUnchanged();
2626

27-
if (previous === undefined) return <div> states are equal </div>;
27+
if (previous === undefined || delta === undefined) return <div> states are equal </div>;
2828
return (
2929
<div>
3030
{ ReactHtmlParser(html) }

0 commit comments

Comments
 (0)