mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 17:42:49 -05:00
display names for enums
This commit is contained in:
@ -1043,7 +1043,12 @@ namespace Bit.Core.Services
|
||||
|
||||
if(!string.IsNullOrWhiteSpace(subscriber.GatewayCustomerId))
|
||||
{
|
||||
var customer = await customerService.GetAsync(subscriber.GatewayCustomerId);
|
||||
Customer customer = null;
|
||||
try
|
||||
{
|
||||
customer = await customerService.GetAsync(subscriber.GatewayCustomerId);
|
||||
}
|
||||
catch(StripeException) { }
|
||||
if(customer != null)
|
||||
{
|
||||
billingInfo.Balance = customer.AccountBalance / 100M;
|
||||
|
Reference in New Issue
Block a user