Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier506 committed Sep 9, 2021
2 parents fe0407e + 466f3be commit c0193cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webapp/src/models/User/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@ const user = {
let userRates = []
let edenMember = false
const rpc = getRpc(ual)

if (accountName.length) {
account = await rpc.get_account(accountName)

const { rows: edenMenbers } = await rpc.get_table_rows({
const { rows: edenMembers } = await rpc.get_table_rows({
json: true,
code: contractEden,
scope: 0,
table: 'member',
lower_bound: accountName,
limit: 1,
reverse: false,
show_payer: false
})

for (const member of edenMenbers) {
if (accountName === member[1].account) {
edenMember = true
break
}
if (edenMembers[0][1].account === accountName) {
edenMember = true
}
}

Expand Down

0 comments on commit c0193cf

Please sign in to comment.