Shared: Utils: add isHideBannerForUser
This commit is contained in:
parent
3fdd1af74b
commit
f3ef4ce95c
@ -46,3 +46,8 @@ export const getConfig = async (campaign: string, standalone: boolean) => {
|
||||
const res = await fetch(configUrl);
|
||||
return Promise.resolve(res.json());
|
||||
};
|
||||
|
||||
export const isHideBannerForUser = (userType: string, hideFor: string[]) => {
|
||||
if (hideFor.includes(userType)) return true;
|
||||
return false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user