|
@ -55,6 +55,7 @@ export const fetchTicker = (id) => async (dispatch) => { |
|
|
|
|
|
|
|
|
// Receive IPC event for receiveCryptocurrency
|
|
|
// Receive IPC event for receiveCryptocurrency
|
|
|
export const receiveCryptocurrency = (event, currency) => dispatch => { |
|
|
export const receiveCryptocurrency = (event, currency) => dispatch => { |
|
|
|
|
|
console.log('currency: ', currency) |
|
|
dispatch({ type: SET_CURRENCY, currency: cryptoTickers[currency] }) |
|
|
dispatch({ type: SET_CURRENCY, currency: cryptoTickers[currency] }) |
|
|
dispatch({ type: SET_CRYPTO, crypto: cryptoTickers[currency] }) |
|
|
dispatch({ type: SET_CRYPTO, crypto: cryptoTickers[currency] }) |
|
|
} |
|
|
} |
|
|