Skip to content

Commit

Permalink
use var predfined type instead of actual value for dac
Browse files Browse the repository at this point in the history
Co-authored-by: Hang Le <[email protected]>
  • Loading branch information
blankdots and hannyle authored Apr 8, 2021
1 parent 153e005 commit 5195610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const useQuery = (): URLSearchParams => {
}

export const formatDisplayObjectType = (objectType: string): string => {
if (objectType === "dac"){
if (objectType === ObjectTypes.dac){
return `${objectType.toUpperCase()}`
} else {
return `${objectType.charAt(0).toUpperCase()}${objectType.slice(1)}`
Expand Down

0 comments on commit 5195610

Please sign in to comment.