mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
1042aa9e63
* Add check for valid values of status field * Ad dmissing new file Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
17 lines
336 B
TypeScript
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;
|
|
}
|