diff --git a/CHANGELOG.md b/CHANGELOG.md index c36221c14c..027e484802 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] - 2023-06-01 + +## Changed + +- Fix payout history date range. The dates were initially reversed and displayed the wrong date range. + ## [1.1.0] - 2023-05-31 ## Added diff --git a/package.json b/package.json index 02c411318c..b45b037ca2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polkadot-staking-dashboard", - "version": "1.1.0", + "version": "1.1.1", "license": "apache-2.0", "private": false, "dependencies": { diff --git a/src/pages/Payouts/index.tsx b/src/pages/Payouts/index.tsx index 497ddeb2a8..9a905abd97 100644 --- a/src/pages/Payouts/index.tsx +++ b/src/pages/Payouts/index.tsx @@ -68,12 +68,14 @@ export const Payouts = (props: PageProps) => {

- {payouts.length ? ( + {payoutsList.length ? ( <> - {moment.unix(payouts[0].block_timestamp).format('Do MMMM')} + {moment + .unix(payoutsList[payoutsList.length - 1].block_timestamp) + .format('Do MMMM')}  -  {moment - .unix(payouts[payouts.length - 1].block_timestamp) + .unix(payoutsList[0].block_timestamp) .format('Do MMMM')} ) : (