diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-03 20:12:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-03 20:12:32 +0100 |
commit | d00f7a4a0187b61257d9ff5703dfb4245d50eece (patch) | |
tree | aff6ff61908a332099e55cff9ce1035225f8cb04 /packages/merchant-backoffice-ui/src/utils/amount.ts | |
parent | 0a604ee3ea1f1c43dfbe74d74f571329136e3749 (diff) | |
download | wallet-core-d00f7a4a0187b61257d9ff5703dfb4245d50eece.tar.xz |
-fix typos
Diffstat (limited to 'packages/merchant-backoffice-ui/src/utils/amount.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/utils/amount.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/merchant-backoffice-ui/src/utils/amount.ts b/packages/merchant-backoffice-ui/src/utils/amount.ts index 61e33129c..1cfd5c1d1 100644 --- a/packages/merchant-backoffice-ui/src/utils/amount.ts +++ b/packages/merchant-backoffice-ui/src/utils/amount.ts @@ -17,10 +17,10 @@ import { amountFractionalBase, AmountJson, Amounts } from "@gnu-taler/taler-util import { MerchantBackend } from "../declaration"; /** - * sums two prices, - * @param one - * @param two - * @returns + * sums two prices, + * @param one + * @param two + * @returns */ const sumPrices = (one: string, two: string) => { const [currency, valueOne] = one.split(':') @@ -30,7 +30,7 @@ const sumPrices = (one: string, two: string) => { /** * merge refund with the same description and a difference less than one minute - * @param prev list of refunds that will hold the merged refunds + * @param prev list of refunds that will hold the merged refunds * @param cur new refund to add to the list * @returns list with the new refund, may be merged with the last */ @@ -38,8 +38,8 @@ export function mergeRefunds(prev: MerchantBackend.Orders.RefundDetails[], cur: let tail; if (prev.length === 0 || //empty list - cur.timestamp.t_s === 'never' || //current doesnt have timestamp - (tail = prev[prev.length - 1]).timestamp.t_s === 'never' || // last doesnt have timestamp + cur.timestamp.t_s === 'never' || //current does not have timestamp + (tail = prev[prev.length - 1]).timestamp.t_s === 'never' || // last does not have timestamp cur.reason !== tail.reason || //different reason cur.pending !== tail.pending || //different pending state Math.abs(cur.timestamp.t_s - tail.timestamp.t_s) > 1000 * 60) {//more than 1 minute difference |