Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier506 committed Dec 14, 2021
2 parents 1ab4ada + b769f45 commit d89400d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion webapp/src/routes/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ const Home = () => {
const isValid = !isAnInvitee && !joinRequest.length && hasKyc
const errorMessageTag =
(isAnInvitee ? 'accountHelperError' : '') ||
(joinRequest.length ? 'accountHelperError2' : 'accountHelperError3')
(joinRequest.length ? 'accountHelperError2' : '') ||
(!hasKyc ? 'accountHelperError3' : 'accountHelperText')

setIsValidAccount({
showHelper: true,
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/utils/affiliate.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const checkKyc = async acc => {
upper_bound: acc
})

return !!rows?.length
return !!rows[0]?.kyc?.length
}

const getUsers = async lowerBound => {
Expand Down

0 comments on commit d89400d

Please sign in to comment.