on master help sign in
Merge pull request #941 from urbit/hm/fix-set-network-keys-flow

details-store: try both L1 and L2 when syncing details

commit9f93263f69d4a6a8dfe1a343b6034736b16b75b9 authortomholford <16504501+tomholford@users.noreply.github.com> dateMon 7 Feb 2022, 09:22 (5 years ago) parent04bea4cacb36ee
2 files changed+12−2
src/lib/useRoller.ts+2−1 src/store/lib/useDetailsStore.ts+10−1
src/lib/useRoller.ts+2−1
@@ -672,7 +672,8 @@ export default function useRoller() {
672672
673673 return api.getPendingTx(txHash);
674674 },
675− [// eslint-disable-line
675+ [
676+ // eslint-disable-line
676677 api,
677678 authMnemonic,
678679 authToken,
src/store/lib/useDetailsStore.ts+10−1
@@ -48,8 +48,17 @@ export default function useDetailsStore() {
4848 addToDetails({
4949 [point]: details,
5050 });
51− } catch (e) {
51+ } catch (error) {
5252 if (isDevelopment) {
53+ console.warn(error);
54+ }
55+
56+ try {
57+ const details = await azimuth.azimuth.getPoint(_contracts, point);
58+ addToDetails({
59+ [point]: details,
60+ });
61+ } catch (e) {
5362 console.warn(e);
5463 }
5564 }