From e593a6cc6c09fa7c0d823cc7ea10c8432cb662d6 Mon Sep 17 00:00:00 2001 From: Matthew Stanciu Date: Sat, 11 Jan 2020 21:37:51 -0500 Subject: [PATCH] Simplify --- src/utils/index.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index b71ab9a9..ec9ecbc5 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -251,13 +251,9 @@ export const getInfoForUser = user => airFind('People', 'Slack ID', user).then( person => (results.person = person) ), - airFind('Ambassadors', 'Slack ID', user).then( - () => { - airGet('Ambassadors', 'IF(Permissioned = 1, "true", "false"').then( - permissionedAmbassador => { - results.permissionedAmbassador = permissionedAmbassador - } - ) + airGet('Ambassadors', 'IF(Permissioned = 1, "true", "false"').then( + permissionedAmbassador => { + results.permissionedAmbassador = permissionedAmbassador } ) ])