552e6e6c3a
* Show custom feed of contracts from folds your follow or have bet on. * Add tw-elements UI library * Add loading spinner while feed loads * Switch from onSnapshot to our listenForValues, which doesn't set with partial cached values * Change home tags to communities * Remove tw-elements for now
4 lines
115 B
TypeScript
4 lines
115 B
TypeScript
export function filterDefined<T>(array: (T | null | undefined)[]) {
|
|
return array.filter((item) => item) as T[]
|
|
}
|