Use the current state filtering until API is changed

This commit is contained in:
Kimmo Puputti 2017-10-02 16:05:06 +03:00
parent da7f2e686d
commit d9996c9084

View file

@ -298,8 +298,14 @@ export const fetchCurrentUserNotifications = () =>
const apiQueryParams = {
only: 'sale',
// TODO: how to change this to use lastTransition?
// states: [TX_STATE_PREAUTHORIZED],
// TODO: Currently the API supports only filtering by tx
// state. However, the state will be removed and support for
// filtering by last transitions is added. The code below should
// be changed at that point.
states: ['state/preauthorized'],
// last_transitions: [TX_TRANSITION_PREAUTHORIZE],
page: 1,
per_page: NOTIFICATION_PAGE_SIZE,
};