aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-02-12 18:36:57 -0600
committerJP Dillingham <jpdillingham@gmail.com>2022-02-12 18:36:57 -0600
commitb7151f39ceac6049b928767df315d742048f8d3e (patch)
treec70c6cf2a45e0c4323fe1885ada3f2fb034c5a54 /src/web
parenta3f331c61bb344841c0941d844de125ed7458c0a (diff)
downloadslskd-b7151f39ceac6049b928767df315d742048f8d3e.tar.gz
memoize logo
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/LoginForm.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/src/components/LoginForm.js b/src/web/src/components/LoginForm.js
index 44043ddb..a71e6b1a 100644
--- a/src/web/src/components/LoginForm.js
+++ b/src/web/src/components/LoginForm.js
@@ -12,6 +12,7 @@ const initialState = {
const LoginForm = ({ onLoginAttempt, loading, error }) => {
const [state, setState] = useState(initialState);
const [ready, setReady] = useState(false);
+ const logo = useMemo(() => Logos[Math.floor(Math.random() * Logos.length)], []);
useEffect(() => {
if (state.username !== '' && state.password !== '') {