From 78f15af7ac4b336c5e53178fd80e348151cc5f98 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Apr 2019 19:31:26 +0200 Subject: fix citation doublnig prob --- scraper/client/paper/paper.verify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scraper/client/paper') diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index 25117ff1..8794feb4 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -36,7 +36,7 @@ class PaperVerify extends Component { const { sha256 } = this.props.match.params this.props.actions.getInstitutions() this.props.actions.getAddress(sha256) - this.props.actions.getVerification(sha256) + this.props.actions.getVerification(this.props.api.paperInfo.dataset.key, sha256) const citationState = this.getCitationState(sha256) // console.log('DID MOUNT') this.setState(citationState) @@ -54,7 +54,7 @@ class PaperVerify extends Component { if (oldSha256 && sha256 !== oldSha256) { // console.log('update verification') this.props.actions.getAddress(sha256) - this.props.actions.getVerification(sha256) + this.props.actions.getVerification(this.props.api.paperInfo.dataset.key, sha256) const citationState = this.getCitationState(sha256) newState = { ...initialState, -- cgit v1.2.3-70-g09d2