From 333d3a24036e24fded72974ca4d863b4bd90d867 Mon Sep 17 00:00:00 2001 From: emil <33105890+poolsar42@users.noreply.github.com> Date: Mon, 5 Jun 2023 13:46:41 -0400 Subject: [PATCH] wip --- apps/console/app/routes/apps/$clientId/team.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/console/app/routes/apps/$clientId/team.tsx b/apps/console/app/routes/apps/$clientId/team.tsx index 00e5807b17..c1a14d4325 100644 --- a/apps/console/app/routes/apps/$clientId/team.tsx +++ b/apps/console/app/routes/apps/$clientId/team.tsx @@ -227,17 +227,15 @@ export default () => { onSelect={(selected) => { // type casting to DropdownSelectListItem instead of array if (!Array.isArray(selected)) { - if (selected.value === appContactAddress) { + if (!selected || !selected.value) { + console.error('Error selecting email, try again') return } - if (!selected) { - console.error('No addressURN') + if (selected.value === appContactAddress) { return } submit( { - //TODO: temp fix. To be removed with full fix of typing issue - //@ts-ignore addressURN: selected.value, }, {