react-code-dataset / wp-calypso /client /state /cancellation-offers /selectors /get-cancellation-offer-apply-error.js
| /** | |
| * Get the error status of applying a cancellation offer | |
| * @param state | |
| * @param purchaseId | |
| * @returns null | { code : string } | |
| */ | |
| export default function getCancellationOfferApplyError( state, purchaseId ) { | |
| return state.cancellationOffers?.[ purchaseId ]?.applyError ?? null; | |
| } | |