Skip to content

Commit

Permalink
fix template (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Jan 11, 2023
1 parent c950cb4 commit 8ba70a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/build-block.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
2 changes: 1 addition & 1 deletion template/diff.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8ba70a1

Please sign in to comment.