Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahdigh committed Jun 21, 2024
2 parents 93589f5 + 81d9157 commit 3a27ea4
Show file tree
Hide file tree
Showing 3 changed files with 578,784 additions and 2,064 deletions.
7 changes: 4 additions & 3 deletions src/utils/badges/readBadges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { RawSnapshotPoint } from './snapshot';
const medalTypes = [
'Bronze',
'Diamond',
'Platnium',
'Platinum',
'Gold',
'Silver',
'WHALE',
'Whale',
] as const;

export type BadgeData = {
Expand Down Expand Up @@ -67,7 +67,8 @@ export const getBadges = async (
for (key in row) {
if (key === 'User') continue;
const value = row[key];
if (value === '0' || value === 'null') continue;
if (value === 0 || value === null || value === '0' || value === 'null')
continue;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (isNumeric(value)) filtered[key] = Number(value);
Expand Down
Loading

0 comments on commit 3a27ea4

Please sign in to comment.