Skip to content
Permalink
Browse files

fix: disputeId -> disputeID from store

  • Loading branch information...
satello committed Sep 7, 2018
1 parent c193d2f commit 93508e26891427ae8604d24805c42eaab612d335
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/utils/StoreProviderWrapper.js
@@ -117,11 +117,13 @@ class StoreProviderWrapper {
if (!userProfile)
throw new Error(errorConstants.PROFILE_NOT_FOUND(userAddress))

return _.filter(
const dispute = _.filter(
userProfile.disputes,
o =>
o.arbitratorAddress === arbitratorAddress && o.disputeId === disputeID
)[0]
dispute.disputeID = dispute.disputeId
return dispute
}

/**
@@ -133,7 +135,10 @@ class StoreProviderWrapper {
const userProfile = await this.getUserProfile(userAddress)
if (!userProfile) return []

return userProfile.disputes
return userProfile.disputes.map(dispute => {
dispute.disputeID = dispute.disputeId
return dispute
})
}

/**

0 comments on commit 93508e2

Please sign in to comment.
You can’t perform that action at this time.