feat: implement core platform features including business directory, admin dashboard, authentication, and API infrastructure
Some checks failed
Build and Push App / build (push) Failing after 16m2s
Some checks failed
Build and Push App / build (push) Failing after 16m2s
This commit is contained in:
@@ -40,7 +40,7 @@ export default function FeaturedModal({ business }: Props) {
|
||||
});
|
||||
};
|
||||
|
||||
const handleRemove = () => {
|
||||
const handleRemove = async () => {
|
||||
if (confirm("Retirer cet entrepreneur du titre 'Entrepreneur du mois' ?")) {
|
||||
startTransition(async () => {
|
||||
const result = await removeFeaturedBusiness(business.id);
|
||||
@@ -48,7 +48,7 @@ export default function FeaturedModal({ business }: Props) {
|
||||
toast.success("Titre révoqué");
|
||||
setIsOpen(false);
|
||||
} else {
|
||||
toast.error(result.error);
|
||||
toast.error(result.error || "Une erreur est survenue lors de la suppression");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user