From 4a217104a5a766d714e8f9b06931d6785b8fcbac Mon Sep 17 00:00:00 2001 From: yoution <zhuyan207@gmail.com> Date: Mon, 16 Aug 2021 07:25:37 +0800 Subject: [PATCH] fix: issue #483 --- .../CreateNewTeam/components/SearchAndSubmit/index.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx b/src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx index 63e0d55..ff664a2 100644 --- a/src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx +++ b/src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx @@ -38,9 +38,14 @@ function SearchAndSubmit(props) { isExternalMemberRequest({ memberId: tokenData.userId, }).then((res) => { - const newStages = [...stages, { name: "Overview of the Results" }]; + if (res.data) { + const newStages = [ + ...stages, + { name: "Refundable Deposit Payment" }, + ]; + setStages(newStages); + } setIsExternalMember(res.data); - setStages(newStages); }); } });