Skip to content

Commit

Permalink
ensure an element is always returned from imageGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
butlerx committed Dec 16, 2019
1 parent 6e8f170 commit 764f9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/imageGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function ImageGrid({
const [isOpen, setIsOpen] = useState(false);
const [currImg, setCurrImg] = useState(0);

if (!images) return;
if (!images) return <></>;

function gotoNext() {
setCurrImg(currImg + 1);
Expand Down

0 comments on commit 764f9da

Please sign in to comment.