File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ export default class Money extends ValueObject<Props> {
209209 // any business rule behavior. Calc.
210210 public sum(x : Money ): Money {
211211 const { number : Calc } = this .util ;
212- const value = fee .get (' amount' );
212+ const value = x .get (' amount' );
213213 const current = this .get (' amount' );
214214 const amount = Calc (current ).sum (value );
215215 return new Money ({ amount });
@@ -218,7 +218,7 @@ export default class Money extends ValueObject<Props> {
218218 // any business rule behavior. Calc.
219219 public subtract(x : Money ): Money {
220220 const { number : Calc } = this .util ;
221- const value = fee .get (' amount' );
221+ const value = x .get (' amount' );
222222 const current = this .get (' amount' );
223223 const amount = Calc (current ).subtract (value );
224224 return new Money ({ amount });
You can’t perform that action at this time.
0 commit comments