From e8ce67b0ba34a9cd3bae0b3d16b4539c5564ab9a Mon Sep 17 00:00:00 2001 From: Rocco Musolino Date: Thu, 10 Oct 2024 15:51:10 +0200 Subject: [PATCH] fix: type coercion --- js/src/delegation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/delegation.ts b/js/src/delegation.ts index a3656ce..7742fc5 100644 --- a/js/src/delegation.ts +++ b/js/src/delegation.ts @@ -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,