Skip to content

Commit 1b20ed7

Browse files
authored
Merge pull request #570 from bcgov/ccfri-3894-fiscal-year-name-fix
ccfri-3894 - update formatFiscalYearName function
2 parents 80518a7 + e79dc35 commit 1b20ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/utils/format.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ export function formatTime24to12(time24h) {
3333
}
3434

3535
export function formatFiscalYearName(fiscalYearName) {
36-
return fiscalYearName?.replace(/[^\d-]/g, '');
36+
return fiscalYearName?.replace('/', '-').replace(/[^\d-]/g, '');
3737
}

0 commit comments

Comments
 (0)