Only emit sign up event when the property "shouldCreateUser" is truthy
This commit is contained in:
@@ -77,12 +77,14 @@ export function MagicLinkAuthContainer({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (shouldCreateUser) {
|
||||||
appEvents.emit({
|
appEvents.emit({
|
||||||
type: 'user.signedUp',
|
type: 'user.signedUp',
|
||||||
payload: {
|
payload: {
|
||||||
method: 'magiclink',
|
method: 'magiclink',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
toast.promise(promise, {
|
toast.promise(promise, {
|
||||||
|
|||||||
Reference in New Issue
Block a user