All files / app/common/error isCartChangedError.ts

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8    79x 1x   1x    
import { CartChangedError } from '@bigcommerce/checkout-sdk';
 
export default function isCartChangedError(error: Error): error is CartChangedError {
    const requestError = error as CartChangedError;
 
    return requestError.type === 'cart_changed';
}