Skip to content

Commit

Permalink
replace dash & endash
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtennant committed Nov 16, 2023
1 parent 989da4b commit 7adb53d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ export class AppController {
@Res() res: Response
) {
console.log('rendering NFR / GL page!!!')
const decodedDocumentType = decodeURIComponent(documentType).toUpperCase();
if (decodedDocumentType == "GRAZING LEASE" || decodedDocumentType == "AGRICULTURAL LEASE - U - GRAZING – MP") {
let decodedDocumentType = decodeURIComponent(documentType)
decodedDocumentType = decodedDocumentType.toUpperCase().replace(/\s+/g, "").replace(/-/g, "").replace(//g,"");
console.log(decodedDocumentType)
if (decodedDocumentType == "GRAZINGLEASE" || decodedDocumentType == "AGRICULTURALLEASEUGRAZINGMP") {
return this.getGrazingLeaseDisplayData(session, dtid, res);
} else {
return this.getNfrDisplayData(session, dtid, documentType, res);
Expand Down

0 comments on commit 7adb53d

Please sign in to comment.