Skip to content

Commit 6f17640

Browse files
committed
feat: moved function to utility
1 parent 761ad25 commit 6f17640

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { ScoreElement } from "../../types";
2+
3+
export const areEqualElements = (
4+
currentElement: ScoreElement,
5+
previousElement: ScoreElement,
6+
) => {
7+
if (
8+
JSON.stringify(currentElement.details) ===
9+
JSON.stringify(previousElement.details) ||
10+
JSON.stringify(currentElement.reason) ===
11+
JSON.stringify(previousElement.reason)
12+
) {
13+
return true;
14+
}
15+
return false;
16+
};

0 commit comments

Comments
 (0)