diff --git a/e2e/build-block.test.ts b/e2e/build-block.test.ts index f9852ec8..6bc0aaea 100644 --- a/e2e/build-block.test.ts +++ b/e2e/build-block.test.ts @@ -4,7 +4,7 @@ import { setupAll } from './helper' describe.each([ { chain: 'Polkadot', endpoint: 'wss://rpc.polkadot.io' }, - { chain: 'Kusama', endpoint: 'wss://kusama-rpc.dwellir.com' }, + { chain: 'Kusama', endpoint: 'wss://kusama.api.onfinality.io/public-ws' }, { chain: 'Acala', endpoint: 'wss://acala-rpc-1.aca-api.network' }, ])('Latest $chain can build blocks', async ({ endpoint }) => { const { setup, teardownAll } = await setupAll({ endpoint }) diff --git a/template/diff.html b/template/diff.html index 7dcfb2d4..d543e487 100644 --- a/template/diff.html +++ b/template/diff.html @@ -108,7 +108,7 @@ } function renderDelta(value) { - if (/^\d+(,\d+)*$/.test(value[1])) { + if (/^\d+(,\d+)*$/.test(value[0]) && /^\d+(,\d+)*$/.test(value[1])) { const oldValue = parseInt(value[0].replace(/,/g, '')) const newValue = parseInt(value[1].replace(/,/g, '')) if (oldValue > 0 && newValue > 0) {