summaryrefslogtreecommitdiff
path: root/scraper/client/paper/paper.verify.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-20 10:13:14 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-20 10:13:14 +0100
commitb6b6d902d124ab986767780a200bb9528fab0317 (patch)
tree13280750d7c887477b457f9b8db4a8e65d76e3e0 /scraper/client/paper/paper.verify.js
parent7e146d164052ca72666da914c53843407171a960 (diff)
form stuff
Diffstat (limited to 'scraper/client/paper/paper.verify.js')
-rw-r--r--scraper/client/paper/paper.verify.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js
index c2bf4b90..5f4a7240 100644
--- a/scraper/client/paper/paper.verify.js
+++ b/scraper/client/paper/paper.verify.js
@@ -32,23 +32,23 @@ class PaperVerify extends Component {
componentDidUpdate(oldProps) {
const { sha256 } = this.props.match.params
- const { address } = this.props.api
+ const { verify } = this.props.api
const { sha256: oldSha256 } = oldProps.match.params
- const { address: oldAddress } = oldProps.api
- const oldPaper = oldAddress ? oldAddress.paper : null
- const paper = address ? address.paper : null
+ const { verify: oldVerify } = oldProps.api
+ const oldPaper = oldVerify ? oldVerify.paper : null
+ const paper = verify ? verify.paper : null
if (oldSha256 && sha256 !== oldSha256) {
- console.log('update address')
+ console.log('update verification')
this.props.actions.getVerification(sha256)
const citationState = this.getCitationState(sha256)
this.setState({
...initialState,
...citationState,
})
- } else if (address && !address.loading && address.paper && (!oldPaper || oldPaper !== address.paper)) {
+ } else if (verify && !verify.loading && verify.paper && (!oldPaper || oldPaper !== verify.paper)) {
if (paper.error) {
- console.log('USING PAPER ADDRESS')
+ console.log('USING PAPER VERIFICATION')
const citationState = this.getCitationState(sha256)
this.setState({
...initialState,