From f8bb93266b61b4b9085aa9917510924efa9b2630 Mon Sep 17 00:00:00 2001 From: Jacob Shandling <61553566+jacobshandling@users.noreply.github.com> Date: Thu, 2 Feb 2023 10:15:59 -0800 Subject: [PATCH] Give clearer names to apple APN data on frontend (#9622) Co-authored-by: Jacob Shandling --- .../pages/admin/IntegrationsPage/cards/Mdm/Mdm.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/pages/admin/IntegrationsPage/cards/Mdm/Mdm.tsx b/frontend/pages/admin/IntegrationsPage/cards/Mdm/Mdm.tsx index b2821cb3f0..bfe4e876b5 100644 --- a/frontend/pages/admin/IntegrationsPage/cards/Mdm/Mdm.tsx +++ b/frontend/pages/admin/IntegrationsPage/cards/Mdm/Mdm.tsx @@ -36,11 +36,11 @@ const Mdm = (): JSX.Element => { const [showCSRFlag, setShowCSRFlag] = useState(true); const { - data: mdmApple, + data: appleAPNInfo, isLoading: isLoadingMdmApple, error: errorMdmApple, } = useQuery( - ["mdmAppleAPI"], + ["appleAPNInfo"], () => mdmAppleAPI.getAppleAPNInfo(), { enabled: isPremiumTier, @@ -117,7 +117,7 @@ const Mdm = (): JSX.Element => { return ; } - if (!mdmApple) { + if (!appleAPNInfo) { return ( <>
@@ -166,13 +166,13 @@ const Mdm = (): JSX.Element => {

Common name (CN)

-

{mdmApple.common_name}

+

{appleAPNInfo.common_name}

Serial number

-

{mdmApple.serial_number}

+

{appleAPNInfo.serial_number}

Issuer

-

{mdmApple.issuer}

+

{appleAPNInfo.issuer}

Renew date

-

{readableDate(mdmApple.renew_date)}

+

{readableDate(appleAPNInfo.renew_date)}

);