Skip to content

Commit

Permalink
Merge pull request #3747 from bcgov/NDT-655-History-Log-Displays-Unde…
Browse files Browse the repository at this point in the history
…fined-for-0-Amount

fix: formatting 0 values in history
  • Loading branch information
AntBush authored Jan 6, 2025
2 parents 165d5bd + 39dfd1a commit f3f13e4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.221.1](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.221.0...v1.221.1) (2025-01-06)

### Bug Fixes

- formatting 0 values in history ([9f96d0d](https://github.com/bcgov/CONN-CCBC-portal/commit/9f96d0d4612fbf28627d8e1c7361db065a705cc2))

# [1.221.0](https://github.com/bcgov/CONN-CCBC-portal/compare/v1.220.0...v1.221.0) (2025-01-03)

### Features
Expand Down
3 changes: 3 additions & 0 deletions app/components/DiffTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const StyledTd = styled.td`
`;

const format = (value, type) => {
if (type === 'number' && value === 0) {
return '$0';
}
if (typeof value === 'number' && type === 'number') {
return formatMoney(value);
}
Expand Down
1 change: 1 addition & 0 deletions db/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -772,3 +772,4 @@ computed_columns/application_history [computed_columns/[email protected]
@1.220.0 2025-01-02T19:26:33Z CCBC Service Account <[email protected]> # release v1.220.0
tables/coverages_upload 2024-12-19T21:24:55Z Rafael Solorzano <[email protected]> # create table to keep a record of coverages upload
@1.221.0 2025-01-03T19:56:42Z CCBC Service Account <[email protected]> # release v1.221.0
@1.221.1 2025-01-06T17:05:04Z CCBC Service Account <[email protected]> # release v1.221.1
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CONN-CCBC-portal",
"version": "1.221.0",
"version": "1.221.1",
"main": "index.js",
"repository": "https://github.com/bcgov/CONN-CCBC-portal.git",
"author": "Romer, Meherzad CITZ:EX <[email protected]>",
Expand Down

0 comments on commit f3f13e4

Please sign in to comment.