Skip to content

Commit

Permalink
DEGIRO v2: add isNan check
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff committed Feb 1, 2025
1 parent 11b7c3c commit 1733ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converters/degiroConverterV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class DeGiroConverterV2 extends AbstractConverter {
fee: feeAmount,
quantity: numberShares,
type: orderType,
unitPrice: unitPrice,
unitPrice: !isNaN(unitPrice) ? unitPrice : 0,
currency: actionRecord.currency,
dataSource: "YAHOO",
date: date.format("YYYY-MM-DDTHH:mm:ssZ"),
Expand Down

0 comments on commit 1733ac7

Please sign in to comment.