diff --git a/src/libs/actions/Policy/Category.ts b/src/libs/actions/Policy/Category.ts index 294712666bdf..5db8be5b8a5a 100644 --- a/src/libs/actions/Policy/Category.ts +++ b/src/libs/actions/Policy/Category.ts @@ -279,7 +279,6 @@ function renamePolicyCategory(policyID: string, policyCategory: {oldName: string [policyCategory.newName]: { ...policyCategoryToUpdate, name: policyCategory.newName, - unencodedName: decodeURIComponent(policyCategory.newName), pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE, pendingFields: { name: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE, @@ -298,7 +297,6 @@ function renamePolicyCategory(policyID: string, policyCategory: {oldName: string [policyCategory.newName]: { ...policyCategoryToUpdate, name: policyCategory.newName, - unencodedName: decodeURIComponent(policyCategory.newName), errors: null, pendingAction: null, pendingFields: { @@ -317,7 +315,6 @@ function renamePolicyCategory(policyID: string, policyCategory: {oldName: string [policyCategory.oldName]: { ...policyCategoryToUpdate, name: policyCategory.oldName, - unencodedName: decodeURIComponent(policyCategory.oldName), errors: ErrorUtils.getMicroSecondOnyxError('workspace.categories.updateFailureMessage'), pendingAction: null, }, diff --git a/src/pages/workspace/tags/TagSettingsPage.tsx b/src/pages/workspace/tags/TagSettingsPage.tsx index 0041744f6413..66494e176e45 100644 --- a/src/pages/workspace/tags/TagSettingsPage.tsx +++ b/src/pages/workspace/tags/TagSettingsPage.tsx @@ -43,8 +43,7 @@ function TagSettingsPage({route, policyTags, navigation}: TagSettingsPageProps) const [isDeleteTagModalOpen, setIsDeleteTagModalOpen] = React.useState(false); - const currentPolicyTag = - policyTag.tags[decodeURIComponent(route.params.tagName)] ?? Object.values(policyTag.tags ?? {}).find((tag) => tag.previousTagName === decodeURIComponent(route.params.tagName)); + const currentPolicyTag = policyTag.tags[route.params.tagName] ?? Object.values(policyTag.tags ?? {}).find((tag) => tag.previousTagName === route.params.tagName); useEffect(() => { if (currentPolicyTag?.name === route.params.tagName || !currentPolicyTag) {