Skip to content

Commit cac9194

Browse files
committed
fix: useGenesisBlock
1 parent 1fe9cb3 commit cac9194

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

web/src/hooks/useGenesisBlock.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@ const useGenesisBlock = () => {
1111
import("@kleros/kleros-v2-contracts/deployments/arbitrumSepoliaDevnet/KlerosCoreUniversity.json").then((json) =>
1212
setGenesisBlock(json.receipt.blockNumber)
1313
);
14-
}
15-
16-
if (isKlerosNeo()) {
14+
} else if (isKlerosNeo()) {
1715
import("@kleros/kleros-v2-contracts/deployments/arbitrum/KlerosCoreNeo.json").then((json) =>
1816
setGenesisBlock(json.receipt.blockNumber)
1917
);
20-
}
21-
22-
if (isTestnetDeployment()) {
18+
} else if (isTestnetDeployment()) {
2319
import("@kleros/kleros-v2-contracts/deployments/arbitrumSepolia/KlerosCore.json").then((json) =>
2420
setGenesisBlock(json.receipt.blockNumber)
2521
);

0 commit comments

Comments
 (0)