on master help sign in
fix single point login with star withdrawal
232d636Liam Fitzgerald
src/views/Points.js+9−3
@@ -125,7 +125,10 @@ export default function Points() {
125 // if there are any pending transfers, incoming or outgoing, stay on this
125 // if there are any pending transfers, incoming or outgoing, stay on this
126 // page, because those can only be completed/cancelled here.
126 // page, because those can only be completed/cancelled here.
127 useEffect(() => {
127 useEffect(() => {
128+ if (
128− if (Nothing.hasInstance(maybeOutgoingPoints)) {
129+ Nothing.hasInstance(maybeOutgoingPoints) ||
130+ Nothing.hasInstance(starReleaseDetails)
131+ ) {
129 return;
132 return;
130 }
133 }
131 controlledPoints.matchWith({
134 controlledPoints.matchWith({
@@ -146,7 +149,8 @@ export default function Points() {
146 if (
149 if (
147 all.length === 1 &&
150 all.length === 1 &&
148 incoming.length === 0 &&
151 incoming.length === 0 &&
149− maybeOutgoingPoints.value.length === 0
152+ maybeOutgoingPoints.value.length === 0 &&
153+ starReleaseDetails.value.total === 0
150 ) {
154 ) {
151 setPointCursor(Just(all[0]));
155 setPointCursor(Just(all[0]));
152 popAndPush(names.POINT);
156 popAndPush(names.POINT);
@@ -162,6 +166,7 @@ export default function Points() {
162 setPointCursor,
166 setPointCursor,
163 popAndPush,
167 popAndPush,
164 names,
168 names,
169+ starReleaseDetails,
165 ]);
170 ]);
166
171
167 const address = need.addressFromWallet(wallet);
172 const address = need.addressFromWallet(wallet);
@@ -226,7 +231,8 @@ export default function Points() {
226 loading ||
231 loading ||
227 (allPoints.length === 1 &&
232 (allPoints.length === 1 &&
228 incomingPoints.length === 0 &&
233 incomingPoints.length === 0 &&
229− outgoingPoints.length === 0)
234+ outgoingPoints.length === 0 &&
235+ !starReleasing)
230 ) {
236 ) {
231 return (
237 return (
232 <View inset pop={pop}>
238 <View inset pop={pop}>