Skip to content

Commit

Permalink
Removed hard coded ipfsPeerID
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansenn committed May 16, 2023
1 parent 79a80ea commit 6f123f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/views/PoAView/useEnablePoA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ export function useEnablePoA() {
const parsedOut = JSON.parse(out);
console.log('parsedOut', parsedOut);
console.log('ipfsPeerID', ipfsPeerID);
if (parsedOut.peerId == "12D3KooWN9tVM5Fk3vsS5emRFA8xfGkj7fztQ8PAPahtaxDjjZzA") {
if (parsedOut.peerId == ipfsPeerID) {
console.log('Proof of access is already enabled');
NotificationManager.error('Proof of access is already enabled');
return;
}

console.log('peerID: ', ipfsPeerID);
await handleUpdatePostingData("12D3KooWN9tVM5Fk3vsS5emRFA8xfGkj7fztQ8PAPahtaxDjjZzA");
await handleUpdatePostingData(ipfsPeerID);
NotificationManager.success('Proof of access enabled');
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 6f123f1

Please sign in to comment.