Skip to content

Commit

Permalink
bugfix: remove tasotarkistus redeclaration
Browse files Browse the repository at this point in the history
  • Loading branch information
NC-jsAhonen committed Dec 13, 2024
1 parent 91743cf commit 6fea815
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/leases/components/leaseSections/rent/RentItemEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ class RentItemEdit extends PureComponent<Props, State> {
rentTypeIsIndex2022 = rentType === RentTypes.INDEX2022,
rentTypeIsManual = rentType === RentTypes.MANUAL,
rentTypeIsFixed = rentType === RentTypes.FIXED;
const oldDwellingsInHousingCompaniesPriceIndex = get(savedRent, 'old_dwellings_in_housing_companies_price_index');
const oldDwellingsInHousingCompaniesPriceIndexType = get(savedRent, 'old_dwellings_in_housing_companies_price_index_type');
return <Collapse archived={archived} defaultOpen={rentCollapseState !== undefined ? rentCollapseState : active || rents.length === 1 && !archived} hasErrors={isSaveClicked && !isEmpty(rentErrors)} headerTitle={<Authorization allow={isFieldAllowedToRead(leaseAttributes, LeaseRentsFieldPaths.TYPE)}>
{getLabelOfOption(typeOptions, get(savedRent, 'type')) || '-'}
Expand Down

0 comments on commit 6fea815

Please sign in to comment.