mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-01-12 15:58:34 -05:00
7 lines
250 B
TypeScript
7 lines
250 B
TypeScript
import {track} from "web/lib/service/analytics";
|
|
import {updateProfile} from "web/lib/api";
|
|
|
|
export async function disableProfile(disabled: boolean) {
|
|
track(`disable profile ${disabled ? 'on' : 'off'}`)
|
|
await updateProfile({disabled: disabled})
|
|
} |