File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/routes/(console)/apply-credit Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 246
246
billingPlan = getBillingPlan ();
247
247
}
248
248
249
- $ : isNewOrg = selectedOrgId && selectedOrgId !== newOrgId ;
249
+ $ : isNewOrg = ! ( selectedOrgId && selectedOrgId !== newOrgId ) ;
250
250
251
- $ : {
252
- if (isNewOrg ) {
253
- (async () => {
254
- currentPlan = await sdk .forConsole .billing .getOrganizationPlan (selectedOrgId );
255
- })();
256
- }
251
+ $ : if (! isNewOrg ) {
252
+ (async () => {
253
+ currentPlan = await sdk .forConsole .billing .getOrganizationPlan (selectedOrgId );
254
+ })();
257
255
}
258
256
259
257
// after adding a payment method, fetch the payment methods again so the input can be updated
371
369
{collaborators }
372
370
bind:couponData
373
371
bind:billingBudget
374
- organizationId ={isNewOrg ? selectedOrgId : null }>
372
+ organizationId ={! isNewOrg ? selectedOrgId : null }>
375
373
{#if campaign ?.template === ' review' && (campaign ?.cta || campaign ?.claimed || campaign ?.unclaimed )}
376
374
<div class =" u-margin-block-end-24" >
377
375
<p class ="body-text-1 u-bold" >{campaign ?.cta }</p >
You can’t perform that action at this time.
0 commit comments