Skip to content

Commit

Permalink
Minor update (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmychu0807 authored Feb 12, 2022
1 parent 251c565 commit e330c79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ will be helpful, but the template strives to be self-explanatory.

### Installation

The codebase is installed using [git](https://git-scm.com/) and [yarn](https://yarnpkg.com/). This tutorial assumes you have installed yarn globally prior to installing it within the subdirectories. For the most recent version and how to install yarn, please refer to [yarn](https://yarnpkg.com/) documentation and installation guides.
The codebase is installed using [git](https://git-scm.com/) and [yarn](https://yarnpkg.com/). This tutorial assumes you have installed yarn globally prior to installing it within the subdirectories. For the most recent version and how to install yarn, please refer to [Yarn](https://yarnpkg.com/) documentation and installation guides.

```bash
# Clone the repository
Expand Down Expand Up @@ -43,10 +43,10 @@ and open `build/index.html` in your favorite browser.
Connecting to Polkadot:<br/>
https://substrate-developer-hub.github.io/substrate-front-end-template?rpc=wss://rpc.polkadot.io

Connecting to your local Substrate node (only works with Chrome and Firefox as it uses insecure websocket connection):<br/>
Connecting to your local Substrate node (Chrome and Firefox only):<br/>
https://substrate-developer-hub.github.io/substrate-front-end-template?rpc=ws://localhost:9944

Connecting to the development Substrate node:<br/>
Connecting to the development Substrate node `wss://dev-node.substrate.dev`:<br/>
https://substrate-developer-hub.github.io/substrate-front-end-template


Expand Down
2 changes: 1 addition & 1 deletion public/assets/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.github-fork-ribbon.right-bottom:before {
background-color: #222;
background-color: #666;
}

.ui.statistic.block_number > .value {
Expand Down
3 changes: 2 additions & 1 deletion src/BlockNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function Main(props) {
let unsubscribeAll = null

bestNumber(number => {
setBlockNumber(number.toNumber())
// Append `.toLocaleString('en-US')` to display a nice thousand-separated digit.
setBlockNumber(number.toNumber().toLocaleString('en-US'))
setBlockNumberTimer(0)
})
.then(unsub => {
Expand Down

0 comments on commit e330c79

Please # to comment.