Skip to content

Commit

Permalink
fix: correcting sliding window implmentation
Browse files Browse the repository at this point in the history
A bug was introduced when converting to typescipt.
  • Loading branch information
markmcdowell committed Sep 6, 2019
1 parent fb87bec commit abcd953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-financial-charts/src/utils/slidingWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ export default function () {
});
};

slidingWindow.undefinedValue = function (...args) {
if (!args.length) {
slidingWindow.undefinedValue = function (x) {
if (!arguments.length) {
return undefinedValue;
}
undefinedValue = args;
undefinedValue = x;
return slidingWindow;
};
slidingWindow.windowSize = function (x) {
Expand Down

0 comments on commit abcd953

Please sign in to comment.