import { DEFAULT_IMAGES } from "~/config/paths";

export const handleIconError = (payload: string | Event) => {
    if (payload instanceof Event) {
        const target = payload.target as HTMLImageElement;
        target.src = DEFAULT_IMAGES.ICON;
    }
};