fix: oauth aff
This commit is contained in:
@@ -2,8 +2,8 @@ import { API, showError } from '../helpers';
|
|||||||
|
|
||||||
export async function getOAuthState() {
|
export async function getOAuthState() {
|
||||||
let path = '/api/oauth/state';
|
let path = '/api/oauth/state';
|
||||||
let affCode = new URLSearchParams(window.location.search).get('aff');
|
let affCode = localStorage.getItem('aff');
|
||||||
if (affCode) {
|
if (affCode && affCode.length > 0) {
|
||||||
path += `?aff=${affCode}`;
|
path += `?aff=${affCode}`;
|
||||||
}
|
}
|
||||||
const res = await API.get(path);
|
const res = await API.get(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user