-
Notifications
You must be signed in to change notification settings - Fork 2
🔖 new release #618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔖 new release #618
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,14 @@ | ||
| # @exactly/mobile | ||
|
|
||
| ## 1.0.45 | ||
|
|
||
| ### Patch Changes | ||
|
|
||
| - [#617](https://github.com/exactly/exa/pull/617) [`b3153b8`](https://github.com/exactly/exa/commit/b3153b8ae245cc70a31b9c6ebcc9e60423e0245a) Thanks [@itofarina](https://github.com/itofarina)! - 🐛 include installments fee in payment details | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There appears to be a potential bug in the implementation of the feature described in this changelog entry. In
The This is a To ensure consistency and correctness, the per-installment amount should be calculated based on the same total amount logic. Here is a suggested refactor: // In PaymentDetails.tsx, for the item.mode > 1 case:
// Use the same logic as the total amount calculation to get the total fee.
const totalFee = (item as InstallmentsActivity).borrow.installments.reduce(
(accumulator, installment) => accumulator + installment.fee,
0,
);
// Then, in the JSX for per-installment amount:
{item.mode > 1 &&
((item.usdAmount + totalFee) / (item as InstallmentsActivity).borrow.installments.length).toFixed(2)}
// The total amount calculation is already correct.
cruzdanilo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - Updated dependencies [[`bfd960c`](https://github.com/exactly/exa/commit/bfd960ce67ea03c30301b451aef2a6d1f53807fa)]: | ||
| - @exactly/server@0.2.47 | ||
|
|
||
| ## 1.0.44 | ||
|
|
||
| ### Patch Changes | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.