mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Custom Checkout Progress
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { FetcherError } from '@commerce/utils/errors'
|
||||
|
||||
export function getError(errors: any[], status: number) {
|
||||
export function getError(errors: any[] | null, status: number) {
|
||||
errors = errors ?? [{ message: 'Failed to fetch Shopify API' }]
|
||||
return new FetcherError({ errors, status })
|
||||
}
|
||||
|
Reference in New Issue
Block a user