mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 19:42:51 +00:00
Fix type error
This commit is contained in:
1 parent
d85cf5f929
commit
db04cbfbfc
1 file changed
+2
-1
@@ -132,9 +132,10 @@ test("ConnectionLostError: Action handling should reset error state", async () =
|
||||
const WrapComponent = (): ReactNode => {
|
||||
const [failState, setFailState] = useState(true);
|
||||
const reconnectCallback = useCallback(
|
||||
(action: CallErrorRecoveryAction) => {
|
||||
async (action: CallErrorRecoveryAction) => {
|
||||
reconnectCallbackSpy(action);
|
||||
setFailState(false);
|
||||
return Promise.resolve();
|
||||
},
|
||||
[setFailState],
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user