Skip to content

Commit

Permalink
decode unencodedName
Browse files Browse the repository at this point in the history
  • Loading branch information
ArekChr committed Mar 14, 2024
1 parent 86d2e6a commit 240500a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@ function renamePolicyCategory(policyID: string, policyCategory: {oldName: string
[policyCategory.newName]: {
...policyCategoryToUpdate,
name: policyCategory.newName,
unencodedName: encodeURIComponent(policyCategory.newName),
unencodedName: decodeURIComponent(policyCategory.newName),
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,
},
},
Expand All @@ -2774,7 +2774,7 @@ function renamePolicyCategory(policyID: string, policyCategory: {oldName: string
[policyCategory.newName]: {
...policyCategoryToUpdate,
name: policyCategory.newName,
unencodedName: encodeURIComponent(policyCategory.newName),
unencodedName: decodeURIComponent(policyCategory.newName),
errors: null,
pendingAction: null,
},
Expand All @@ -2790,7 +2790,7 @@ function renamePolicyCategory(policyID: string, policyCategory: {oldName: string
[policyCategory.oldName]: {
...policyCategoryToUpdate,
name: policyCategory.oldName,
unencodedName: encodeURIComponent(policyCategory.oldName),
unencodedName: decodeURIComponent(policyCategory.oldName),
errors: ErrorUtils.getMicroSecondOnyxError('workspace.categories.genericFailureMessage'),
pendingAction: null,
},
Expand Down

0 comments on commit 240500a

Please sign in to comment.