Skip to content

Commit

Permalink
Change const to let
Browse files Browse the repository at this point in the history
Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
styfle and ijjk committed Jan 19, 2022
1 parent bfdf0c3 commit ec6ee05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function ImageWithMessage({ id, idToCount, setIdToCount, ...props }) {
<Image
id={`img${id}`}
onLoadingComplete={({ naturalWidth, naturalHeight }) => {
const count = idToCount[id] || 0
let count = idToCount[id] || 0
count++
idToCount[id] = count
setIdToCount(idToCount)
Expand Down

0 comments on commit ec6ee05

Please sign in to comment.