Skip to content

Commit

Permalink
Update row update algorithm to use enum rather than hard coded string
Browse files Browse the repository at this point in the history
  • Loading branch information
bolny committed Jan 7, 2025
1 parent 0786cf1 commit 30657b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
} from '../SaveSiteDetailsSlice';
import { UserActionEnum } from '../../../common/userActionEnum';
import { SiteDetailsMode } from '../dto/SiteDetailsMode';
import { SRApprovalStatusEnum } from '../../../common/srApprovalStatusEnum';

type ParcelDescriptionsChangeEvent = {
property: 'descriptionType' | 'idPinNumber' | 'dateNoted';
Expand Down Expand Up @@ -219,7 +220,7 @@ const ParcelDescriptions = () => {
return {
...newRow,
apiAction: UserActionEnum.updated,
srAction: 'pending',
srAction: SRApprovalStatusEnum.Pending,
} as IParcelDescriptionSaveDto;
} else {
return originalRow;
Expand Down

0 comments on commit 30657b6

Please sign in to comment.