Skip to content
Permalink
Browse files

fix(notifications): make sure appeal possible notifications unique

  • Loading branch information...
satello committed Mar 5, 2018
1 parent 957bf06 commit b7c55e6d3e36e3e6942f2a9259f1168df9498f10
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/abstractWrappers/Disputes.js
@@ -121,7 +121,6 @@ class Disputes extends AbstractWrapper {
notificationCallback = callback
) => {
const newPeriod = event.args._period.toNumber()
const txHash = event.transactionHash
// send appeal possible notifications
if (newPeriod === arbitratorConstants.PERIOD.APPEAL) {
this._checkArbitratorWrappersSet()
@@ -152,7 +151,7 @@ class Disputes extends AbstractWrapper {
) {
const notification = await this._StoreProvider.newNotification(
address,
txHash,
arbitratorAddress, // use arbitratorAddress so that we know it is unique. not event based
disputeId, // use disputeId instead of logIndex since it doens't have its own event
notificationConstants.TYPE.APPEAL_POSSIBLE,
'A ruling has been made. Appeal is possible',

0 comments on commit b7c55e6

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