1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

Fix Stripe org default tax rates

This commit is contained in:
Matt Gibson
2021-11-09 19:39:41 -05:00
parent 234800d969
commit 2ad7c2894b

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<string> taxRateIds)
{
if (taxRateIds != null && taxRateIds.Any())
if (taxRateIds != null && taxRateIds.Any(tax => !string.IsNullOrWhiteSpace(tax)))
{
DefaultTaxRates = taxRateIds;
}