Skip to content

Commit

Permalink
[fix] canvas might be null
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianvrj committed Sep 2, 2024
1 parent 9dc9089 commit ae6e098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/gostarkme-web/animations/StardustAnimation.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useRef } from 'react';

export const StardustAnimation = () => {
const canvasRef = useRef(null);
const canvasRef = useRef<HTMLCanvasElement>(null);

useEffect(() => {
const canvas = canvasRef.current;
Expand Down

0 comments on commit ae6e098

Please sign in to comment.