Commit 2414f36 1 parent 6b526e3 commit 2414f36 Copy full SHA for 2414f36
File tree 1 file changed +0
-9
lines changed
src/app/(app)/workshop/[workshopId]/_components
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 3
3
import * as React from "react"
4
4
import { toast } from "sonner"
5
5
6
- import { notifyOrganizerAboutRegistration } from "@/server/actions/notification"
7
6
import {
8
7
cancelRegistrationAction ,
9
8
registerUserAction ,
@@ -22,7 +21,6 @@ interface RegisterButtonProps {
22
21
export function RegisterButton ( {
23
22
userId,
24
23
workshopId,
25
- workshopTitle,
26
24
isCurrentUserRegistered,
27
25
} : RegisterButtonProps ) {
28
26
const [ isPending , startTransition ] = React . useTransition ( )
@@ -43,13 +41,6 @@ export function RegisterButton({
43
41
return
44
42
}
45
43
46
- if ( ! isCurrentUserRegistered ) {
47
- await notifyOrganizerAboutRegistration ( {
48
- workshopId,
49
- workshopTitle,
50
- } )
51
- }
52
-
53
44
toast . success (
54
45
isCurrentUserRegistered
55
46
? "Registration Canceled"
You can’t perform that action at this time.
0 commit comments