mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-25 11:27:09 -05:00
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
8 lines
249 B
TypeScript
8 lines
249 B
TypeScript
import {updateProfile} from 'web/lib/api'
|
|
import {track} from 'web/lib/service/analytics'
|
|
|
|
export async function disableProfile(disabled: boolean) {
|
|
track(`disable profile ${disabled ? 'on' : 'off'}`)
|
|
await updateProfile({disabled: disabled})
|
|
}
|