🐛 fix: aff not effective
This commit is contained in:
parent
983e77cb73
commit
0bfe1f5779
@ -6,6 +6,11 @@ const useRegister = () => {
|
||||
const navigate = useNavigate();
|
||||
const register = async (input, turnstile) => {
|
||||
try {
|
||||
let affCode = localStorage.getItem('aff');
|
||||
if (affCode) {
|
||||
input = { ...input, aff_code: affCode };
|
||||
}
|
||||
|
||||
const res = await API.post(`/api/user/register?turnstile=${turnstile}`, input);
|
||||
const { success, message } = res.data;
|
||||
if (success) {
|
||||
|
Loading…
Reference in New Issue
Block a user