diff --git a/components/AccountFilter.tsx b/components/AccountFilter.tsx index a5610c5bc..f23bb43e7 100644 --- a/components/AccountFilter.tsx +++ b/components/AccountFilter.tsx @@ -6,6 +6,7 @@ import { themeColor } from './../utils/ThemeUtils'; interface PillProps { name: string; + hidden?: boolean; textColor?: string; borderColor?: string; backgroundColor?: string; @@ -72,28 +73,32 @@ function AccountFilter(props: AccountFilterProps) { for (const item in props.items) { const account = props.items[item]; - const { name } = account; + const { name, hidden } = account; - pills.push( - - { - if (props.onChangeAccount) props.onChangeAccount(); - setPin(name); - }} - /> - - ); + if (!hidden) { + pills.push( + + { + if (props.onChangeAccount) props.onChangeAccount(); + setPin(name); + }} + /> + + ); + } } return (