Skip to content

Commit

Permalink
fix: default state fallback image
Browse files Browse the repository at this point in the history
  • Loading branch information
nnivxix committed Mar 25, 2024
1 parent a302b6e commit 851d67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useImageFallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useEffect, useState } from "react";
export type TypeImage = "poster" | "backdrop";

const useImageFallback = (type: TypeImage) => {
const [fallback, setFallback] = useState<string>("/poster-fallback.png");
const [fallback, setFallback] = useState<string>("");

useEffect(() => {
switch (type) {
Expand Down

0 comments on commit 851d67d

Please sign in to comment.