Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show referral and referral activity points when empty #1642

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

derHowie
Copy link
Member

Fixes BX-1287

What changed (plus any additional context for devs)

Users with empty referral activity will now always see referral line items in the weekly summary even if empty ("none").

Screen recordings / screenshots

Screenshot 2024-07-24 at 12 41 53 PM

What to test

Ensure these line items appear for addresses with no activity for a given week.

Copy link

linear bot commented Jul 24, 2024

Copy link

Here's the packed extension for this build:
rainbowbx-a427ff81a5fd7c74403800f4a1f9a6caf2aa55c1

@@ -85,6 +85,14 @@ export const getWeeklyEarnings = (points: PointsQuery['points']) => {
!(['retroactive', 'redemption'].includes(d.type) && d.earnings === 0),
);

if (!diffs.find((d) => d.type === 'new_referrals')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a function called isLowerCaseMatch if that's helpful to add here.

@DanielSinclair DanielSinclair added this pull request to the merge queue Jul 24, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 24, 2024
@DanielSinclair DanielSinclair added this pull request to the merge queue Jul 24, 2024
Merged via the queue into master with commit 75626bd Jul 24, 2024
17 checks passed
@DanielSinclair DanielSinclair deleted the @chris/show-empty-referral-points branch July 24, 2024 22:50
Copy link

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-75626bdba617ef9cd9e02e2052201289ca621c54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants