Uspokojení eslintu

This commit is contained in:
2023-06-03 09:52:11 +02:00
parent 4d22b85d13
commit bd050ba8ce
2 changed files with 2 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import React, { useCallback, useContext, useEffect, useRef, useState } from 'react';
import React, { useContext, useEffect, useRef, useState } from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import { EVENT_DISCONNECT, EVENT_MESSAGE, SocketContext } from './context/socket';
import { getData, getFood, updateChoice } from './Api';
@@ -68,7 +68,7 @@ function App() {
}
}
}
}, [auth?.login, data?.choices, choiceRef?.current])
}, [auth, auth?.login, data?.choices])
const changeChoice = async (event: React.ChangeEvent<HTMLSelectElement>) => {
const index = Object.values(Locations).indexOf(event.target.value as unknown as Locations);