saleor-dashboard/src/utils/errors/webhooks.ts
Michał Droń abbe76442d
Fix strict null errors in utils (#3007)
* Fix strict null in utils/errors

* Fix auth-related src/utils strict null errors

* Fix data, maps and tables utils

* Fix utils/urls

* Fix filters

* Fix strict null errors in utils/handlers

* Fix strict nulls in utils/menu

* Fix strict nulls in utils/sort

* Fix strict nulls in utils/richText

* Fix search handler

* Fix siteSettings leftover type mismatch

* Fix page map error for attribute case

* Fix type error for sdk error codes

* Fix Choice type in page maps

* Fix error types mismatch

* Remove addressType from type union in auth error message
2023-01-23 09:30:04 +01:00

13 lines
391 B
TypeScript

import { WebhookErrorFragment } from "@dashboard/graphql";
import { IntlShape } from "react-intl";
import { getCommonFormFieldErrorMessage } from "./common";
function getWebhookErrorMessage(
err: Omit<WebhookErrorFragment, "__typename"> | undefined,
intl: IntlShape,
): string | undefined {
return getCommonFormFieldErrorMessage(err, intl);
}
export default getWebhookErrorMessage;