trustwallet-assets/script/generic/status-values.ts
Adam R 5dc4b993ca
[Internal] Add nsfw tag (tag, not status) (#11536)
Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2021-07-08 21:01:32 +02:00

17 lines
336 B
TypeScript

// see https://developer.trustwallet.com/add_new_asset
const StatusValues: string[] = [
'active',
'spam',
'abandoned'
];
export function isValidStatusValue(value: string): boolean {
if (!value) {
return false;
}
if (!StatusValues.find(e => e === value)) {
return false;
}
return true;
}