Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier506 committed Oct 10, 2021
2 parents ce54f9e + b6a415c commit 5891b3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
9 changes: 4 additions & 5 deletions webapp/src/context/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export const getUserDataModeled = async ual => {
const rpc = getRpc(ual)

const account = await rpc.get_account(accountName)
const { rows: edenMembers } = await rpc.get_table_rows({
const {
rows: [edenMembers]
} = await rpc.get_table_rows({
json: true,
code: mainConfig.contractEden,
scope: 0,
Expand All @@ -42,10 +44,7 @@ export const getUserDataModeled = async ual => {
show_payer: false
})

if (
edenMembers.length > 0 &&
edenMembers[0].value[1].account === accountName
) {
if (edenMembers?.length > 0 && edenMembers[1].account === accountName) {
edenMember = true
}

Expand Down

0 comments on commit 5891b3d

Please sign in to comment.