Skip to content

Commit

Permalink
Re-enable conditional signing for pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Sep 27, 2023
1 parent 99db19a commit 0608b05
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/utils/bit-pinning-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,5 @@ export const canPin = (hubChannel: HubChannel, eid: EntityID): boolean => {
const hasFile = !!fileId;
const hasPromotableFile =
hasFile && APP.store.state.uploadPromotionTokens.some((upload: any) => upload.fileId === fileId);
return (
isNetworkInstantiated(eid) &&
!isPinned(eid) &&
hubChannel.can("pin_objects") && // TODO: Remove once conditional sign in is implemented
(!hasFile || hasPromotableFile)
);
return isNetworkInstantiated(eid) && !isPinned(eid) && (!hasFile || hasPromotableFile);
};

0 comments on commit 0608b05

Please sign in to comment.