on master help sign in
points: don't show transfers or rejected points in main list
158748fHunter Miller
src/views/Points.tsx+8−1
@@ -121,7 +121,14 @@ export default function Points() {
121 [getDetails, controlledPoints, _contracts]
121 [getDetails, controlledPoints, _contracts]
122 );
122 );
123
123
124+ const allPoints = useMemo(
125+ () =>
124− const allPoints = pointList.filter(({ shouldDisplay }) => shouldDisplay);
126+ pointList.filter(
127+ ({ isTransferProxy, shouldDisplay, value }) =>
128+ shouldDisplay && !isTransferProxy && !rejectedPoints.includes(value)
129+ ),
130+ [pointList, rejectedPoints]
131+ );
125
132
126 // if we can only interact with a single point, jump to the point page.
133 // if we can only interact with a single point, jump to the point page.
127 // if there are any pending transfers, incoming or outgoing, stay on this
134 // if there are any pending transfers, incoming or outgoing, stay on this