1 parent b6881b4 commit fc8ced7Copy full SHA for fc8ced7
1 file changed
apps/codebility/app/applicant/onboarding/_components/OnboardingClient.tsx
@@ -2,6 +2,7 @@
2
3
import React, { useState, useEffect } from "react";
4
import { useRouter } from "next/navigation";
5
+import toast from "react-hot-toast";
6
import { Button } from "@/components/ui/button";
7
import OnboardingStepper from "./OnboardingStepper";
8
import VideoPlayer from "./VideoPlayer";
@@ -162,7 +163,7 @@ export default function OnboardingClient({
162
163
if (result.success) {
164
router.push("/applicant/waiting");
165
} else {
- alert("Failed to complete onboarding. Please try again.");
166
+ toast.error("Failed to complete onboarding. Please try again.");
167
setIsCompleting(false);
168
}
169
};
0 commit comments