Skip to content

Commit

Permalink
fix: fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan-helmy committed Sep 6, 2023
1 parent 30b92c0 commit 015031c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/SurauOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ const SurauOverview: FC<SurauOverviewProps> = ({ surau }) => {
src={image.file_path}
key={image.id}
alt={image.id}
onError={(e) => {
e.currentTarget.src =
"/assets/background/carisuraudefault.png";
}}
className="h-24 min-w-[9rem] max-w-[9rem] rounded-md object-cover hover:cursor-pointer group-hover:opacity-75"
onClick={() => setImageHighlighted(image)}
width={400}
Expand Down
1 change: 1 addition & 0 deletions src/pages/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const SurauList = () => {
className="h-12 w-12 object-cover group-hover:opacity-75"
width={25}
height={25}

/>
</div>
) : (
Expand Down

0 comments on commit 015031c

Please sign in to comment.