db_kyc_project/frontend/src/utils/isWhiteList.js

20 lines
413 B
JavaScript
Raw Normal View History

2024-12-12 23:01:22 +03:00
import { getTgUserId } from "./verification";
export const isWhiteList = () => {
let isWhiteList = false;
//123456,
const whiteList = [
342495217, 6374536117, 322861155, 5219438370, 193428034, 402449803,
2024-12-13 02:46:21 +03:00
406350282, 1083462027
2024-12-12 23:01:22 +03:00
];
const userId = Number(getTgUserId());
whiteList.map((item) => {
if (Number(item) === userId) {
isWhiteList = true;
}
});
return isWhiteList;
}