Fix false "Rented" state for project owners + add "Your project" badge
The rental check catch block was incorrectly setting hasActiveRental=true for project owners when the API call failed (e.g. auth token not synced). This showed a "Rented" badge with no time remaining and hid the rent button. - Separate "owner can play" from "has active rental" via new isOwner computed - canPlay now includes isOwner so owners always have playback access - Catch block no longer fakes a rental — keeps the badge accurate - New purple "Your project" badge for owners (distinct from green "Rented") Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -20,7 +20,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
CACHEBUST: "10"
|
||||
CACHEBUST: "11"
|
||||
VITE_USE_MOCK_DATA: "false"
|
||||
VITE_CONTENT_ORIGIN: ${FRONTEND_URL}
|
||||
VITE_INDEEHUB_API_URL: /api
|
||||
|
||||
Reference in New Issue
Block a user