Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Fixes .plus instead of .add
Browse files Browse the repository at this point in the history
no idea why flow didn't see it
  • Loading branch information
gre committed Jun 21, 2019
1 parent fc8da74 commit 444e19a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions flow-typed/npm/lodash_v4.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 978ec408ef4dc26808325571d235d3ca
// flow-typed version: 9f33da9d84/lodash_v4.x.x/flow_>=v0.63.x
// flow-typed signature: 8b15b6ecab988d6153afcfcf2876bbed
// flow-typed version: 07f4c5ae3d/lodash_v4.x.x/flow_>=v0.63.x

declare module "lodash" {
declare type Path = $ReadOnlyArray<string | number> | string | number;
Expand Down Expand Up @@ -1245,7 +1245,7 @@ declare module "lodash" {
): Object;
omitBy<A, T>(object: void | null, predicate?: ?OPredicate<A, T>): {};
pick(object?: ?Object, ...props: Array<string>): Object;
pick(object?: ?Object, props: Array<string>): Object;
pick(object?: ?Object, props: $ReadOnlyArray<string>): Object;
pickBy<A, T: { [id: any]: A } | { [id: number]: A }>(
object: T,
predicate?: ?OPredicate<A, T>
Expand Down Expand Up @@ -2946,8 +2946,10 @@ declare module "lodash/fp" {
predicate: OPredicate<A>
): (object: T) => Object;
omitBy<A, T: { [id: any]: A }>(predicate: OPredicate<A>, object: T): Object;
pick(props: Array<string>): (object: Object) => Object;
pick(props: Array<string>, object: Object): Object;
pick(...props: Array<string | {}>): Object;
pick(props: $ReadOnlyArray<string>, object: Object): Object;
pick(...props: Array<string>): (object: Object) => Object;
pick(props: $ReadOnlyArray<string>): (object: Object) => Object;
pickAll(props: Array<string>): (object: Object) => Object;
pickAll(props: Array<string>, object: Object): Object;
pickBy<A, T: { [id: any]: A }>(
Expand Down
2 changes: 1 addition & 1 deletion src/portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export function getPortfolio(
if (countervalueReceiveSum.isZero()) {
countervalueChangePercentage = meaningfulPercentage(
countervalueChangeValue,
balanceHistory[0].value.add(countervalueSendSum)
balanceHistory[0].value.plus(countervalueSendSum)
);
} else {
countervalueChangePercentage = meaningfulPercentage(
Expand Down

0 comments on commit 444e19a

Please sign in to comment.