Skip to content

Commit a71bf75

Browse files
committed
feat: show revenue selected time
1 parent 6085e27 commit a71bf75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pages/dashboard/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export default function Dashboard ({ user }: PaybuttonsProps): React.ReactElemen
128128
<>
129129
<TopBar title="Dashboard" user={user.stUser?.email} />
130130
<div className={style.number_ctn}>
131-
<NumberBlock value={'$'.concat(formatQuoteValue(dashboardData.total.revenue, user.userProfile.preferredCurrencyId)) } text='Revenue (lifetime)' />
132-
<NumberBlock value={formatQuoteValue(dashboardData.total.payments)} text='Payments (lifetime)' />
131+
<NumberBlock value={'$'.concat(formatQuoteValue(activePeriod.totalRevenue, user.userProfile.preferredCurrencyId)) } text='Revenue' />
132+
<NumberBlock value={activePeriod.totalPayments} text='Payments' />
133133
<NumberBlock value={dashboardData.total.buttons} text='Buttons' />
134134
</div>
135135
<div className={style.btn_ctn}>

0 commit comments

Comments
 (0)