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