Skip to content
Snippets Groups Projects
Commit b372b681 authored by matograine's avatar matograine
Browse files

allow to renew certifications from account certifications screen

parent 78555478
Branches
Tags
1 merge request!638Certification : add questions before validation
...@@ -905,7 +905,9 @@ function WotIdentityAbstractController($scope, $rootScope, $state, $translate, $ ...@@ -905,7 +905,9 @@ function WotIdentityAbstractController($scope, $rootScope, $state, $translate, $
} }
// Check not already certified // Check not already certified
var previousCert = _.findWhere(identity.received_cert, {pubkey: wallet.data.pubkey, valid: true}); var previousCert = _.find($scope.formData.received_cert, function(cert) {
return cert.pubkey === wallet.data.pubkey && cert.valid && cert.expiresIn > csSettings.data.timeWarningExpire;
});
if (previousCert) { if (previousCert) {
$translate('ERROR.IDENTITY_ALREADY_CERTIFY', previousCert) $translate('ERROR.IDENTITY_ALREADY_CERTIFY', previousCert)
.then(function (message) { .then(function (message) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment