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: fix the null billing limit #24515

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Conversation

zlwaterfield
Copy link
Contributor

@zlwaterfield zlwaterfield commented Aug 21, 2024

Problem

This PR: #24353 introduced an issue where custom limits are null if they are not set, and the string interpolation here makes a string null, which fails the not null check in convertAmountToUsage function. This is causing downstream errors and a few user's billing pages to not render.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

How did you test this code?

@zlwaterfield zlwaterfield self-assigned this Aug 21, 2024
@zlwaterfield zlwaterfield enabled auto-merge (squash) August 21, 2024 21:10
Copy link
Contributor

github-actions bot commented Aug 21, 2024

Size Change: 0 B

Total Size: 1.08 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.08 MB

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@zlwaterfield zlwaterfield merged commit c802071 into master Aug 21, 2024
93 checks passed
@zlwaterfield zlwaterfield deleted the zach/fix-null-billing-limit branch August 21, 2024 21:43
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