We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0db979 commit b4bf84cCopy full SHA for b4bf84c
nationcred/src/generate-datasets.ts
@@ -149,8 +149,8 @@ async function loadNationCredData() {
149
nationCredScore1WeekAgo = nationCredScore
150
const activeThreshold = 1.00
151
152
- let first2Week = (nationCredScore4WeeksAgo ?? 0) + (nationCredScore3WeeksAgo ?? 0)
153
- let last2Week = (nationCredScore1WeekAgo ?? 0) + (nationCredScore2WeeksAgo ?? 0)
+ const first2Week = (nationCredScore4WeeksAgo ?? 0) + (nationCredScore3WeeksAgo ?? 0)
+ const last2Week = (nationCredScore1WeekAgo ?? 0) + (nationCredScore2WeeksAgo ?? 0)
154
155
const isActive = first2Week >= activeThreshold && last2Week >= activeThreshold
156
console.info('isActive:', isActive)
0 commit comments