-
Notifications
You must be signed in to change notification settings - Fork 159
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
Console Feat: make budget cap nullable #1675
Conversation
@@ -168,7 +168,7 @@ | |||
|
|||
trackEvent(Submit.OrganizationCreate, { | |||
plan: tierToPlan(billingPlan)?.name, | |||
budget_cap_enabled: !!billingBudget, | |||
budget_cap_enabled: billingBudget != null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets use strict inequality
|
||
let capActive = false; | ||
let budget: number; | ||
|
||
onMount(() => { | ||
budget = $organization?.billingBudget; | ||
capActive = !!$organization?.billingBudget; | ||
capActive = $organization?.billingBudget != null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!= null will be true for 0 as well
What does this PR do?
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
YES