Skip to content

Commit

Permalink
hide expiry from DTT licence details edit
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtennant committed Oct 10, 2024
1 parent d057c59 commit fabcba9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/client/src/features/licences/LicenceDetailsEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import Species from "../lookups/Species";
import {
LICENCE_TYPE_ID_GAME_FARM,
LICENCE_TYPE_ID_FUR_FARM,
LICENCE_TYPE_ID_DAIRY_TANK_TRUCK,
} from "./constants";

import { selectLicenceSpecies } from "../lookups/licenceSpeciesSlice";
Expand Down Expand Up @@ -354,18 +355,20 @@ export default function LicenceDetailsEdit({
</Form.Control.Feedback>
</>
)}
name={'irmaNumber'}
name={"irmaNumber"}
control={control}
defaultValue={formatIrmaNumber(initialValues.irmaNumber)}
/>
</Form.Group>
) : (
) : licence.licenceTypeId !== LICENCE_TYPE_ID_DAIRY_TANK_TRUCK ? (
<CustomDatePicker
id="expiryDate"
label="Expiry Date"
notifyOnChange={handleFieldChange("expiryDate")}
defaultValue={initialValues.expiryDate}
/>
) : (
<></>
)}
</Col>
<Col lg={8}>
Expand Down

0 comments on commit fabcba9

Please sign in to comment.