@@ -537,15 +537,15 @@ export default {
537537 await this .getData ();
538538 if (! this .error ) {
539539 await this .canEditRecord ();
540- await this .checkClaimStatus ();
540+ // await this.checkClaimStatus();
541541 await this .getMenuButtons ();
542542 }
543543 await this .$nextTick ();
544544 await this .$scrollTo (this .$route .hash || ' body' )
545545 },
546546 async userIsLoggedIn () {
547547 await this .canEditRecord ();
548- await this .checkClaimStatus ();
548+ // await this.checkClaimStatus();
549549 await this .getMenuButtons ();
550550 await this .checkAlerts ();
551551 }
@@ -562,7 +562,7 @@ export default {
562562 _module .$emit (' updateHead' );
563563 if (! _module .error ) {
564564 await _module .canEditRecord ();
565- await _module .checkClaimStatus ();
565+ // await _module.checkClaimStatus();
566566 await _module .getMenuButtons ()
567567 }
568568 await _module .$nextTick ();
@@ -933,9 +933,8 @@ export default {
933933 async checkClaimStatus () {
934934 let _module = this ;
935935 if (_module .user ().isLoggedIn ) {
936- // const recordID = _module.currentRecord['fairsharingRecord'].id;
936+ const recordID = _module .currentRecord [' fairsharingRecord' ].id ;
937937 _module .canClaim = false ;
938- /*
939938 try {
940939 const claim = await client .canClaim (recordID, _module .user ().credentials .token );
941940 if (claim .error ) {
@@ -964,11 +963,10 @@ export default {
964963 _module .noClaimRegistered = true ;
965964 }
966965 }
967- */
968- // catch (e) {
969- // /* istanbul ignore next */
970- // _module.canClaim = false;
971- // }
966+ catch (e) {
967+ /* istanbul ignore next */
968+ _module .canClaim = false ;
969+ }
972970 }
973971 },
974972 /**
0 commit comments