mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[PM-18250]Do not default account credit amount (#13719)
* Set the default value to zero * Remove the 20 dollar for org
This commit is contained in:
@@ -76,7 +76,7 @@ export class AddCreditDialogComponent implements OnInit {
|
|||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
if (this.organizationId != null) {
|
if (this.organizationId != null) {
|
||||||
if (this.creditAmount == null) {
|
if (this.creditAmount == null) {
|
||||||
this.creditAmount = "20.00";
|
this.creditAmount = "0.00";
|
||||||
}
|
}
|
||||||
this.ppButtonCustomField = "organization_id:" + this.organizationId;
|
this.ppButtonCustomField = "organization_id:" + this.organizationId;
|
||||||
const userId = await firstValueFrom(
|
const userId = await firstValueFrom(
|
||||||
@@ -93,7 +93,7 @@ export class AddCreditDialogComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.creditAmount == null) {
|
if (this.creditAmount == null) {
|
||||||
this.creditAmount = "10.00";
|
this.creditAmount = "0.00";
|
||||||
}
|
}
|
||||||
const [userId, email] = await firstValueFrom(
|
const [userId, email] = await firstValueFrom(
|
||||||
this.accountService.activeAccount$.pipe(map((a) => [a?.id, a?.email])),
|
this.accountService.activeAccount$.pipe(map((a) => [a?.id, a?.email])),
|
||||||
|
|||||||
Reference in New Issue
Block a user