Skip to content

Commit 92e7e90

Browse files
Apply suggestions from code review
Co-authored-by: c3024 <102477862+c3024@users.noreply.github.com>
1 parent 26a6cd5 commit 92e7e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/actions/Policy/Category.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ function enablePolicyCategories(policyID: string, enabled: boolean) {
10141014
}
10151015
}
10161016

1017-
function setPolicyCustomUnitDefaultCategory(policyID: string, customUnitID: string, oldCatrgory: string | undefined, category: string) {
1017+
function setPolicyCustomUnitDefaultCategory(policyID: string, customUnitID: string, oldCategory: string | undefined, category: string) {
10181018
const optimisticData: OnyxUpdate[] = [
10191019
{
10201020
onyxMethod: Onyx.METHOD.MERGE,
@@ -1051,7 +1051,7 @@ function setPolicyCustomUnitDefaultCategory(policyID: string, customUnitID: stri
10511051
value: {
10521052
customUnits: {
10531053
[customUnitID]: {
1054-
defaultCategory: oldCatrgory,
1054+
defaultCategory: oldCategory,
10551055
errorFields: {defaultCategory: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('common.genericErrorMessage')},
10561056
pendingFields: {defaultCategory: null},
10571057
},

0 commit comments

Comments
 (0)