refactor: remove unnecessary code
All checks were successful
CI / Get Changed Files (pull_request) Successful in 21s
Label PRs based on size / Check PR size (pull_request) Successful in 22s
Claude PR Review / claude-code (pull_request) Successful in 36s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 10s
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 38s
CI / eslint (pull_request) Successful in 58s
CI / prettier (pull_request) Successful in 47s
CI / Docker frontend validation (pull_request) Successful in 58s
CI / test-build (pull_request) Successful in 57s
All checks were successful
CI / Get Changed Files (pull_request) Successful in 21s
Label PRs based on size / Check PR size (pull_request) Successful in 22s
Claude PR Review / claude-code (pull_request) Successful in 36s
CI / Backend Tests (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
Pull Request Labeler / labeler (pull_request_target) Successful in 10s
CI / Docker backend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Successful in 38s
CI / eslint (pull_request) Successful in 58s
CI / prettier (pull_request) Successful in 47s
CI / Docker frontend validation (pull_request) Successful in 58s
CI / test-build (pull_request) Successful in 57s
This commit is contained in:
parent
81ec7122ea
commit
e35a30a606
1 changed files with 2 additions and 4 deletions
|
@ -63,7 +63,7 @@ export class AnimatedNumberComponent implements OnChanges, AfterViewInit {
|
|||
duration: this.duration,
|
||||
decimalPlaces: 2,
|
||||
useEasing: true,
|
||||
useGrouping: false, // We'll handle grouping in the formatting function
|
||||
useGrouping: false,
|
||||
easingFn: (t, b, c, d) => {
|
||||
if (this.ease === 'power1.out') {
|
||||
return c * (1 - Math.pow(1 - t / d, 1)) + b;
|
||||
|
@ -71,14 +71,12 @@ export class AnimatedNumberComponent implements OnChanges, AfterViewInit {
|
|||
return c * (t / d) + b;
|
||||
},
|
||||
formattingFn: (value) => {
|
||||
// Ensure we preserve the exact decimal value during animation
|
||||
const numericValue = typeof value === 'string' ? parseFloat(value) : value;
|
||||
const formatted = new Intl.NumberFormat('de-DE', {
|
||||
style: 'currency',
|
||||
currency: 'EUR',
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
}).format(numericValue);
|
||||
}).format(value);
|
||||
this.formattedValue = formatted;
|
||||
return formatted;
|
||||
},
|
||||
|
|
Reference in a new issue