You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
292 B
9 lines
292 B
|
22 hours ago
|
export function resolveCampusTextEnabled(area) {
|
||
|
|
if (!area || Number(area.areaKind) !== 2) return 0
|
||
|
|
return Number(area.campusTextEnabled) === 1 ? 1 : 0
|
||
|
|
}
|
||
|
|
|
||
|
|
export function shouldUseSocialText(areaKind, campusTextEnabled) {
|
||
|
|
return Number(areaKind) === 2 && Number(campusTextEnabled) !== 1
|
||
|
|
}
|