Skip to content

Commit

Permalink
fix build (#93)
Browse files Browse the repository at this point in the history
* fix build

* Update Activity.cs
  • Loading branch information
VibeNL authored Jan 5, 2024
1 parent 09a5bef commit bcb39da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GhostfolioSidekick/FileImporter/CryptoWorkarounds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static IEnumerable<Activity> StakeWorkaround(ICollection<Activity> activi
activity.Asset,
activity.Date,
activity.Quantity,
activity.UnitPrice ?? 0,
activity.UnitPrice,
[],
TransactionReferenceUtilities.GetComment(activity.ReferenceCode + "_stake_reward_workaround", activity?.UnitPrice?.Currency?.Symbol),
activity.ReferenceCode + "_stake_reward_workaround");
Expand Down
2 changes: 1 addition & 1 deletion GhostfolioSidekick/Model/Activity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public Activity(ActivityType activityType, SymbolProfile? asset, DateTime date,
Fees = fees ?? Enumerable.Empty<Money>();
Quantity = quantity;
ActivityType = activityType;
UnitPrice = unitPrice ?? throw new ArgumentNullException(nameof(unitPrice));
UnitPrice = unitPrice;
ReferenceCode = referenceCode;
}

Expand Down

0 comments on commit bcb39da

Please sign in to comment.