on master help sign in
Fix flashing of single point in family view.
f8bccabLiam Fitzgerald
src/views/Points.js+17−6
@@ -206,6 +206,23 @@ export default function Points() {
206 push,
206 push,
207 ]);
207 ]);
208
208
209+ if (
210+ loading ||
211+ (allPoints.length === 1 &&
212+ ownedPoints.length === 1 &&
213+ outgoingPoints.length === 0)
214+ ) {
215+ return (
216+ <View inset pop={pop}>
217+ <Grid>
218+ <Grid.Item full as={HelpText} className="mt8 t-center">
219+ <Blinky /> Loading...
220+ </Grid.Item>
221+ </Grid>
222+ </View>
223+ );
224+ }
225+
209 return (
226 return (
210 <View pop={pop} inset>
227 <View pop={pop} inset>
211 <Grid>
228 <Grid>
@@ -215,12 +232,6 @@ export default function Points() {
215 </CopiableAddress>
232 </CopiableAddress>
216 </Grid.Item>
233 </Grid.Item>
217
234
218− {loading && (
219− <Grid.Item full as={HelpText} className="mt8 t-center">
220− <Blinky /> Loading...
221− </Grid.Item>
222− )}
223−
224 {displayEmptyState && (
235 {displayEmptyState && (
225 <Grid.Item full as={HelpText} className="mt8 t-center">
236 <Grid.Item full as={HelpText} className="mt8 t-center">
226 No points to display. This wallet is not the owner or proxy for any
237 No points to display. This wallet is not the owner or proxy for any