Skip to content

Commit

Permalink
js: fix type coercion (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
roccomuso authored Oct 11, 2024
1 parent f677705 commit 001387d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/delegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function getStakeActivatingAndDeactivating(
activating,
deactivating: BigInt(0),
};
} else if (targetEpoch == delegation.deactivationEpoch) {
} else if (targetEpoch === delegation.deactivationEpoch) {
// can only deactivate what's activated
return {
effective,
Expand Down

0 comments on commit 001387d

Please sign in to comment.