Skip to content

Commit

Permalink
remove unnecessary const
Browse files Browse the repository at this point in the history
  • Loading branch information
sumo-slonik committed Jan 7, 2025
1 parent 53fd209 commit 314dca1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6437,8 +6437,6 @@ const CONST = {
},

MIGRATED_USER_WELCOME_MODAL: 'migratedUserWelcomeModal',

DEFAULT_POLICY_ID: '-1',
} as const;

type Country = keyof typeof CONST.ALL_COUNTRIES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function SageIntacctToggleMappingsPage({route}: SageIntacctToggleMappingsPagePro

const policy = usePolicy(route.params.policyID);
const mappingName: SageIntacctMappingName = route.params.mapping;
const policyID: string = policy?.id ?? CONST.DEFAULT_POLICY_ID;
const policyID: string = policy?.id ?? '-1';

Check failure on line 55 in src/pages/workspace/accounting/intacct/import/SageIntacctToggleMappingsPage.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

const config = policy?.connections?.intacct?.config;
const isImportMappingEnable = config?.mappings?.[mappingName] !== CONST.SAGE_INTACCT_MAPPING_VALUE.NONE;
const isAccordionExpanded = useSharedValue(isImportMappingEnable);
Expand Down

0 comments on commit 314dca1

Please sign in to comment.