Skip to content

Commit 6b78843

Browse files
committed
rename var
1 parent 857b288 commit 6b78843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/react/ImageRandom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ interface Props extends ImgHTMLAttributes<HTMLImageElement> {
1010
allImagesSrc: string[];
1111
}
1212

13-
const initialSrc = '';
13+
const initialImageSrc = '';
1414

1515
const ImageRandomReact: FC<Props> = ({ allImagesSrc, className, ...props }) => {
16-
const [imageSrc, setImageSrc] = useState(initialSrc);
16+
const [imageSrc, setImageSrc] = useState(initialImageSrc);
1717

1818
useEffect(() => {
1919
const run = async () => {

0 commit comments

Comments
 (0)