OwnerStatistics api
All checks were successful
Build frontend / build (push) Successful in 1m41s

This commit is contained in:
Beilin-b
2026-06-30 06:55:57 -07:00
parent 03b39317c9
commit 3a3fa5f3fd

View File

@ -72,12 +72,17 @@ export default function OwnerAccountBookPage() {
async function fetchData() {
try {
const data = await getOwnerStatistics();
if (data) {
setStats({
totalRevenue: data.totalRevenue ?? null,
totalReservations: data.totalReservations ?? null,
activeProperties: data.activeProperties ?? null,
financialRevenue: data.financialRevenue ?? null,
financialRevenue:
data.financialRevenue ?? data.totalRevenue ?? null,
financialCommission: data.financialCommission ?? null,
financialBalance: data.financialBalance ?? null,
directRevenue: data.directRevenue ?? null,