Skip to content

Commit

Permalink
fix showing anonym on donaters list
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Jan 25, 2024
1 parent 5a7e9d9 commit 71482f7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/DonatersTopList/DonatersTopList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export default function DonatersTopList({}: {}) {
.then((response) => response.data)
.then((data) => {
const map = new Map();
Object.keys(data).forEach((key) => map.set(key, data[key]));
Object.keys(data)
.filter((key) => key)
.forEach((key) => {
map.set(key, data[key]);
});
const sortedMap =
type === "Last"
? map
Expand All @@ -54,7 +58,6 @@ export default function DonatersTopList({}: {}) {

const type = findSetting(settings, "type", "All");
const titleFontSize = findSetting(settings, "titleFontSize", "24px");
console.log(`title font size: ${titleFontSize}`);
const fontSize = findSetting(settings, "fontSize", "24px");
const titleFont = findSetting(settings, "titleFont", "Roboto");
const font = findSetting(settings, "font", "Roboto");
Expand All @@ -79,7 +82,7 @@ export default function DonatersTopList({}: {}) {
donatersTopStyle.fontSize = titleFontSize + "px";
donatersTopStyle.fontFamily = titleFont;
donatersTopStyle.color = titleColor;
donatersTopStyle.backgroundColor = `rgba(0, 0, 0, ${titleAlphaChannel})`;
donatersTopStyle.backgroundColor = `rgba(0, 0, 0, ${titleAlphaChannel})`;

console.log(donatersTopStyle);

Expand Down

0 comments on commit 71482f7

Please sign in to comment.