Skip to content

Commit

Permalink
Renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayman committed Sep 26, 2024
1 parent f13947c commit 343850f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions profile-diff-details/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/profile-diff/style.css" />
<link rel="stylesheet" href="/profile-diff-details/style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
Expand All @@ -24,9 +24,9 @@
<script src="/helpers/loadENV.js"></script>
<script src="/utils.js"></script>

<script src="/profile-diff/constants.js"></script>
<script src="/profile-diff/profileDiffDetails.utils.js"></script>
<script src="/profile-diff/profileDiffDetails.apiCalls.js"></script>
<script src="/profile-diff/script.js"></script>
<script src="/profile-diff-details/constants.js"></script>
<script src="/profile-diff-details/profileDiffDetails.utils.js"></script>
<script src="/profile-diff-details/profileDiffDetails.apiCalls.js"></script>
<script src="/profile-diff-details/script.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions profile-diff-details/profileDiffDetails.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function checkDifferentValues(primaryData, secondaryData) {
const diffValues = new Set();

for (const listItem in primaryData) {
const oldValue = getDataItem(primaryData, listItem);
const newValue = getDataItem(secondaryData, listItem);
const oldValue = getUserDataItem(primaryData, listItem);
const newValue = getUserDataItem(secondaryData, listItem);
const isValueEqual = String(oldValue).trim() === String(newValue).trim();

if (!isValueEqual) {
Expand Down
2 changes: 1 addition & 1 deletion profile-diffs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async function createProfileDiffCard(data, profileDiffCardList) {
if (filterStates.status === Status.PENDING) {
profileCard.style.cursor = 'pointer';
profileCard.addEventListener('click', () => {
window.location.href = `/profile-diff/?id=${data.id}`;
window.location.href = `/profile-diff-details/?id=${data.id}`;
});
}
profileDiffCardList.appendChild(profileCard);
Expand Down

0 comments on commit 343850f

Please sign in to comment.