1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

Fix Stripe org default tax rates

This commit is contained in:
Matt Gibson
2021-11-09 19:39:41 -05:00
committed by Justin Baur
parent 1b933769db
commit 8e1ed6a364

View File

@ -62,7 +62,7 @@ namespace Bit.Core.Models.Business
protected void AddTaxRateItem(List<Stripe.TaxRate> taxRates) => AddTaxRateItem(taxRates?.Select(t => t.Id).ToList()); protected void AddTaxRateItem(List<Stripe.TaxRate> taxRates) => AddTaxRateItem(taxRates?.Select(t => t.Id).ToList());
protected void AddTaxRateItem(List<string> taxRateIds) protected void AddTaxRateItem(List<string> taxRateIds)
{ {
if (taxRateIds != null && taxRateIds.Any()) if (taxRateIds != null && taxRateIds.Any(tax => !string.IsNullOrWhiteSpace(tax)))
{ {
DefaultTaxRates = taxRateIds; DefaultTaxRates = taxRateIds;
} }