Skip to content

Commit

Permalink
Remove CONST.EMPTY_STRING
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Jan 24, 2025
1 parent b883a37 commit 217baad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,6 @@ const CONST = {
CLOUDFRONT_URL,
EMPTY_ARRAY,
EMPTY_OBJECT,
EMPTY_STRING: '',
DEFAULT_NUMBER_ID: 0,
USE_EXPENSIFY_URL,
EXPENSIFY_URL,
Expand Down
6 changes: 4 additions & 2 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ const config: LinkingOptions<RootStackParamList>['config'] = {
// If params are defined, but reportID is explicitly undefined, we will get the url /r/undefined.
// We want to avoid that situation, so we will return an empty string instead.
parse: {
reportID: (reportID: string | undefined) => reportID ?? CONST.EMPTY_STRING,
// eslint-disable-next-line
reportID: (reportID: string | undefined) => reportID ?? '',
},
stringify: {
reportID: (reportID: string | undefined) => reportID ?? CONST.EMPTY_STRING,
// eslint-disable-next-line
reportID: (reportID: string | undefined) => reportID ?? '',
},
},
[SCREENS.SETTINGS.PROFILE.ROOT]: {
Expand Down

0 comments on commit 217baad

Please sign in to comment.