From 4bfd36fa9b6f47bd6f909832f3c7d5da6fd32916 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 9 Jul 2023 16:51:05 +0800 Subject: [PATCH] Fix useState undefined Blame myself working on multiple features at the same time --- src/pages/settings.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings.jsx b/src/pages/settings.jsx index 58079033..42592a8f 100644 --- a/src/pages/settings.jsx +++ b/src/pages/settings.jsx @@ -1,6 +1,6 @@ import './settings.css'; -import { useRef } from 'preact/hooks'; +import { useEffect, useRef, useState } from 'preact/hooks'; import { useSnapshot } from 'valtio'; import logo from '../assets/logo.svg';