Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1206agra committed Sep 19, 2024
1 parent bc3a503 commit 6a32eec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ function SageIntacctNonReimbursableExpensesPage({policy}: WithPolicyConnectionsP
switch (item.type) {
case 'toggle':
// eslint-disable-next-line no-case-declarations
const {type, shouldHide, ...rest} = item;
const {type, shouldHide, key, ...rest} = item;
return (
<ToggleSettingOptionRow
key={key}
// eslint-disable-next-line react/jsx-props-no-spreading
{...rest}
wrapperStyle={[styles.mv3, styles.ph5]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ function SageIntacctReimbursableExpensesPage({policy}: WithPolicyConnectionsProp
switch (item.type) {
case 'toggle':
// eslint-disable-next-line no-case-declarations
const {type, shouldHide, ...rest} = item;
const {type, shouldHide, key, ...rest} = item;
return (
<ToggleSettingOptionRow
key={key}
// eslint-disable-next-line react/jsx-props-no-spreading
{...rest}
wrapperStyle={[styles.mv3, styles.ph5]}
Expand Down

0 comments on commit 6a32eec

Please sign in to comment.