Skip to content

apiErrorToaster

This file contains a function for displaying API errors as toasts.

Functions

toastApiError()

function toastApiError(err, toastId?): void;

Defined in: src/utils/apiErrorToaster.tsx:15

Displays an API error as a toast.

Parameters

Parameter Type Description
err unknown The error to display.
toastId? string The ID of the toast to update.

Returns

void