mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
OrderPage uses storableError func and correct proptype validation.
This commit is contained in:
parent
061237dec6
commit
5edb24420f
2 changed files with 6 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { types } from '../../util/sdkLoader';
|
||||
import { storableError } from '../../util/errors';
|
||||
import { addMarketplaceEntities } from '../../ducks/marketplaceData.duck';
|
||||
import { updatedEntities, denormalisedEntities } from '../../util/data';
|
||||
|
||||
|
|
@ -79,7 +80,7 @@ export const fetchOrder = id => (dispatch, getState, sdk) => {
|
|||
return response;
|
||||
})
|
||||
.catch(e => {
|
||||
dispatch(fetchOrderError(e));
|
||||
dispatch(fetchOrderError(storableError(e)));
|
||||
throw e;
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -87,14 +87,14 @@ OrderPageComponent.defaultProps = {
|
|||
transaction: null,
|
||||
};
|
||||
|
||||
const { bool, instanceOf, oneOf, shape, string } = PropTypes;
|
||||
const { bool, oneOf, shape, string } = PropTypes;
|
||||
|
||||
OrderPageComponent.propTypes = {
|
||||
authInfoError: instanceOf(Error),
|
||||
authInfoError: propTypes.error,
|
||||
currentUser: propTypes.currentUser,
|
||||
fetchOrderError: instanceOf(Error),
|
||||
fetchOrderError: propTypes.error,
|
||||
intl: intlShape.isRequired,
|
||||
logoutError: instanceOf(Error),
|
||||
logoutError: propTypes.error,
|
||||
params: shape({ id: string }).isRequired,
|
||||
scrollingDisabled: bool.isRequired,
|
||||
tab: oneOf(['details', 'discussion']).isRequired,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue