Skip to content

Commit 1c20c0b

Browse files
author
Rajat
committed
bug fix: drip settings cannot be switched off
1 parent ec366d5 commit 1c20c0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/graphql/courses/logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ export const updateGroup = async ({
805805
}
806806

807807
if (drip) {
808-
if (drip.status) {
808+
if (typeof drip.status === "boolean") {
809809
$set["groups.$.drip.status"] = drip.status;
810810
}
811811
if (drip.type) {

0 commit comments

Comments
 (0)