update subscription algorithm

This commit is contained in:
root
2026-05-25 03:12:19 -04:00
parent 95376d3223
commit c9cbe479aa
42 changed files with 3098 additions and 307 deletions
@@ -80,8 +80,9 @@ export default function AdminRentersPage() {
})
const json = await res.json()
if (!res.ok) throw new Error(json?.message ?? 'Failed')
setRenters(json.data ?? [])
setFiltered(json.data ?? [])
const list = Array.isArray(json.data) ? json.data : (json.data?.data ?? [])
setRenters(list)
setFiltered(list)
} catch (err: any) {
setError(err.message)
} finally {