mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
Merge pull request #1379 from Kukks/fix-cf
fix duplicate key error in crowdfunding
This commit is contained in:
commit
60e5afe690
1 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,7 @@ using NBitcoin;
|
|||
using NBitcoin.DataEncoders;
|
||||
using NBitpayClient;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NUglify.Helpers;
|
||||
using YamlDotNet.RepresentationModel;
|
||||
using YamlDotNet.Serialization;
|
||||
using YamlDotNet.Serialization.NamingConventions;
|
||||
|
@ -154,8 +155,9 @@ namespace BTCPayServer.Services.Apps
|
|||
AnimationColors = settings.AnimationColors,
|
||||
CurrencyData = _Currencies.GetCurrencyData(settings.TargetCurrency, true),
|
||||
CurrencyDataPayments = currentPayments.Select(pair => pair.Key)
|
||||
.Concat(pendingPayments.Select(pair => pair.Key)).Distinct()
|
||||
.Concat(pendingPayments.Select(pair => pair.Key))
|
||||
.Select(id => _Currencies.GetCurrencyData(id.CryptoCode, true))
|
||||
.DistinctBy(data => data.Code)
|
||||
.ToDictionary(data => data.Code, data => data),
|
||||
Info = new ViewCrowdfundViewModel.CrowdfundInfo()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue