mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-29 08:47:18 -05:00
Fix: Resolve TypeScript errors
This commit is contained in:
@@ -68,7 +68,7 @@ export function EntityPhotoGallery({
|
||||
url: photo.cloudflare_image_url,
|
||||
caption: photo.caption || undefined,
|
||||
title: photo.title || undefined,
|
||||
user_id: photo.submitted_by,
|
||||
user_id: photo.submitted_by || '',
|
||||
created_at: photo.created_at,
|
||||
})) || [];
|
||||
|
||||
@@ -148,7 +148,7 @@ export function EntityPhotoGallery({
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-col sm:flex-row gap-2 w-full sm:w-auto">
|
||||
{isModerator && photos.length > 0 && (
|
||||
{isModerator() && photos.length > 0 && (
|
||||
<Button onClick={() => setShowManagement(true)} variant="outline" className="gap-2 w-full sm:w-auto">
|
||||
<Settings className="w-4 h-4" />
|
||||
<span className="sm:inline">Manage</span>
|
||||
|
||||
Reference in New Issue
Block a user