Merge pull request #222 from ArtemKolodko/fix_filter_offset

Drop offset if "to" filter applied
pull/224/head
Artem 2 years ago committed by GitHub
commit a27920c894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/pages/AddressPage/tabs/transactions/Transactions.tsx
  2. 2
      src/pages/ChartsPage/DailyChartPage.tsx

@ -261,7 +261,8 @@ export function Transactions(props: {
}
onFilterChanged({
...filter[props.type],
filters
filters,
offset: 0
})
}
}

@ -47,7 +47,7 @@ const LoadingErrorModal = () => {
}
const formatValue = (value: string) => Intl.NumberFormat('en-US').format(+value)
const formatDate = (date: string) => dayjs(date).format('dddd, MMMM D, YYYY')
const formatDate = (date: string) => date ? dayjs(date).format('dddd, MMMM D, YYYY') : '—'
export interface DailyChartPageProps {
title: string

Loading…
Cancel
Save