From 2ad7c2894bfb0bc123dec7c7c757992aa8f3a94f Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Tue, 9 Nov 2021 19:39:41 -0500 Subject: [PATCH] Fix Stripe org default tax rates --- src/Core/Models/Business/SubscriptionCreateOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Models/Business/SubscriptionCreateOptions.cs b/src/Core/Models/Business/SubscriptionCreateOptions.cs index bcd95c8c25..2cc01fb689 100644 --- a/src/Core/Models/Business/SubscriptionCreateOptions.cs +++ b/src/Core/Models/Business/SubscriptionCreateOptions.cs @@ -62,7 +62,7 @@ namespace Bit.Core.Models.Business protected void AddTaxRateItem(List taxRates) => AddTaxRateItem(taxRates?.Select(t => t.Id).ToList()); protected void AddTaxRateItem(List taxRateIds) { - if (taxRateIds != null && taxRateIds.Any()) + if (taxRateIds != null && taxRateIds.Any(tax => !string.IsNullOrWhiteSpace(tax))) { DefaultTaxRates = taxRateIds; }