Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
fix(notifications): make sure appeal possible notifications unique
Browse files Browse the repository at this point in the history
  • Loading branch information
satello committed Mar 5, 2018
1 parent 957bf06 commit 30ea202
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/abstractWrappers/Disputes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 30ea202

Please sign in to comment.