Uspokojení eslintu
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user