Fixed Call Links

This commit is contained in:
Luke Berndt
2021-02-20 11:56:59 -05:00
parent eb2414bda8
commit fe90263b2c
9 changed files with 42 additions and 39 deletions

View File

@@ -59,6 +59,10 @@ function fetchCallError(data) {
data };
}
// The data field should be a JS date object
export function setCallTime(data) {
return {type: types.SET_CALL_TIME, data};
}
export function changeUrl(url) {
return dispatch => {
@@ -144,7 +148,7 @@ function buildCallUrl(state, date, direction) {
return url;
}
export function fetchNewerCalls( timestamp) {
export function fetchNewerCalls(timestamp) {
return (dispatch, getState) => {
const state = getState();
if (shouldFetchCalls(state)) {