Skip to content

Commit

Permalink
Refactored some code
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshayman committed Sep 26, 2024
1 parent 8dd9c5c commit 741f09d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions profile-diff-details/profileDiffDetails.utils.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
function getDataItem(data, itemName) {
function getUserDataItem(data, itemName) {
const item = data[itemName];

if (item) {
if (item || (itemName === YEARS_OF_EXPERIENCE && item === 0)) {
return item;
} else {
if (itemName === YEARS_OF_EXPERIENCE && item === 0) return item;
else return '';
}

return '';
}

function checkDifferentValues(primaryData, secondaryData) {
Expand Down
6 changes: 3 additions & 3 deletions profile-diff-details/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ body {
--_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
background-size: calc(100% / 3) 50%;
animation: l3 1s infinite linear;
animation: loader-animation 1s infinite linear;
}

.button__loader {
Expand All @@ -217,10 +217,10 @@ body {
--_g: no-repeat radial-gradient(circle closest-side, #fff 90%, #0000);
background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
background-size: calc(100% / 3) 50%;
animation: l3 1s infinite linear;
animation: loader-animation 1s infinite linear;
}

@keyframes l3 {
@keyframes loader-animation {
20% {
background-position: 0% 0%, 50% 50%, 100% 50%;
}
Expand Down

0 comments on commit 741f09d

Please sign in to comment.