1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Fix PR comments

This commit is contained in:
andreas-unleash 2022-06-07 13:24:58 +03:00
parent 63f147b492
commit fa0c32a478

View File

@ -38,6 +38,7 @@ import theme from 'themes/theme';
import { FeatureSchema } from '../../../openapi';
import { useFeatureArchiveApi } from '../../../hooks/api/actions/useFeatureArchiveApi/useReviveFeatureApi';
import useToast from '../../../hooks/useToast';
import {formatUnknownError} from "../../../utils/formatUnknownError";
export interface IFeaturesArchiveTableProps {
archivedFeatures: FeatureSchema[];
@ -78,8 +79,8 @@ export const ArchiveTable = ({
text: 'The feature toggle has been revived.',
confetti: true,
});
} catch (e: any) {
setToastApiError(e.toString());
} catch (e: unknown) {
setToastApiError(formatUnknownError(e));
}
};