From 553ed39c871763084921883f9a3e92def275e8ad Mon Sep 17 00:00:00 2001 From: Hana Worku Date: Thu, 19 Oct 2023 17:18:52 -0500 Subject: [PATCH] Make types play nice - right now common code actuary contact and graphql actuary contact slightly different --- .../DataDetailContactField/DataDetailContactField.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/app-web/src/components/DataDetail/DataDetailContactField/DataDetailContactField.tsx b/services/app-web/src/components/DataDetail/DataDetailContactField/DataDetailContactField.tsx index 977e8239ff..3b524904c5 100644 --- a/services/app-web/src/components/DataDetail/DataDetailContactField/DataDetailContactField.tsx +++ b/services/app-web/src/components/DataDetail/DataDetailContactField/DataDetailContactField.tsx @@ -5,9 +5,9 @@ import { } from '../../../common-code/healthPlanFormDataType' import { getActuaryFirm } from '../../SubmissionSummarySection' import { DataDetailMissingField } from '../DataDetailMissingField' +import { ActuaryContact as GQLActuaryContact } from '../../../gen/gqlClient' -type Contact = ActuaryContact | StateContact - +type Contact = ActuaryContact | StateContact | GQLActuaryContact function isCertainActuaryContact(contact: Contact): contact is ActuaryContact { return (contact as ActuaryContact).actuarialFirm !== undefined }