on master help sign in
fix: empty state for points page
2512563Matt Condon (shrugs)
src/views/Points.js+9
@@ -115,6 +115,8 @@ export default function Points() {
115 ...spawningPoints,
115 ...spawningPoints,
116 ];
116 ];
117
117
118+ const isEmpty = incomingPoints.length === 0 && multipassPoints.length === 0;
119+
118 // sync display details for known points
120 // sync display details for known points
119 useSyncKnownPoints([
121 useSyncKnownPoints([
120 ...ownedPoints,
122 ...ownedPoints,
@@ -137,6 +139,13 @@ export default function Points() {
137 </Grid.Item>
139 </Grid.Item>
138 )}
140 )}
139
141
142+ {isEmpty && (
143+ <Grid.Item full as={HelpText} className="mt8 t-center">
144+ No points to display. This wallet is not the owner or proxy for any
145+ points.
146+ </Grid.Item>
147+ )}
148+
140 {incomingPoints.length > 0 && (
149 {incomingPoints.length > 0 && (
141 <Grid.Item full as={Grid} gap={1} className="mb6">
150 <Grid.Item full as={Grid} gap={1} className="mb6">
142 <Grid.Item full as={H5}>
151 <Grid.Item full as={H5}>