From 0fe2862d612d259c41772c2602d849120bfd993e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Mon, 6 Sep 2021 16:45:39 +0100 Subject: [PATCH] feat: add custom fields fetching on gql client --- new-lamassu-admin/src/pages/Customers/CustomerProfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/new-lamassu-admin/src/pages/Customers/CustomerProfile.js b/new-lamassu-admin/src/pages/Customers/CustomerProfile.js index b75d08b5..38c976b1 100644 --- a/new-lamassu-admin/src/pages/Customers/CustomerProfile.js +++ b/new-lamassu-admin/src/pages/Customers/CustomerProfile.js @@ -64,6 +64,11 @@ const GET_CUSTOMER = gql` lastTxClass daysSuspended isSuspended + customFields { + id + label + value + } transactions { txClass id @@ -159,6 +164,8 @@ const CustomerProfile = memo(() => { const classes = useStyles({ blocked }) + console.log('customer', customerData) + return ( <>