Calling selectors are now based on the root state

This commit is contained in:
Evan Hahn 2020-12-02 12:11:54 -06:00 committed by GitHub
parent d1866a0e5d
commit be99bbe87a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 19 deletions

View file

@ -124,7 +124,7 @@ const mapStateToActiveCallProp = (state: StateType) => {
};
const mapStateToIncomingCallProp = (state: StateType) => {
const call = getIncomingCall(state.calling);
const call = getIncomingCall(state);
if (!call) {
return undefined;
}