on master help sign in
fixing login error
535250aWill Galebach
src/store/lib/useControlledPointsStore.js+2−2
@@ -64,7 +64,7 @@ export default function useControlledPointsStore() {
64 spawningPointsL2 === null
64 spawningPointsL2 === null
65 ) {
65 ) {
66 _setControlledPoints(
66 _setControlledPoints(
67− JSON.stringify(Just(Result.Error('Failed to read the blockchain.')))
67+ Just(Result.Error('Failed to read the blockchain.'))
68 );
68 );
69 } else {
69 } else {
70 await getPointsDetails(
70 await getPointsDetails(
@@ -112,7 +112,7 @@ export default function useControlledPointsStore() {
112 }
112 }
113 } catch (error) {
113 } catch (error) {
114 console.error('failed to fetch controlled points', error);
114 console.error('failed to fetch controlled points', error);
115− _setControlledPoints(JSON.stringify(Just(Result.Error(error))));
115+ _setControlledPoints(Just(Result.Error(error.toString())));
116 }
116 }
117 }, [contracts, wallet, getPoints, getPointsDetails]);
117 }, [contracts, wallet, getPoints, getPointsDetails]);
118
118