Skip to content

Commit

Permalink
fix: the code broke because not all code paths returned a value (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet authored Aug 5, 2024
1 parent 89104d7 commit 439e73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Blockie/Blockie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const Blockie = React.memo((props: BlockieProps) => {
[seed, color, spotcolor, bgcolor, size, scale]
)

const draw = useCallback(() => {
if (!canvasRef || !canvasRef.current) return "🦄"
const draw = useCallback((): void => {
if (!canvasRef || !canvasRef.current) return

const ctx = canvasRef.current.getContext("2d")
if (ctx) {
Expand Down

0 comments on commit 439e73a

Please sign in to comment.