on master help sign in
fixing login error
commit535250a3e61593aa16fa6d3b7046b25d34ed04f5 authorWill Galebach <willbach@gmail.com> dateMon 6 Dec 2021, 10:33 (5 years ago) parent380b8b1
1 file changed+2−2
src/store/lib/useControlledPointsStore.js+2−2
src/store/lib/useControlledPointsStore.js+2−2
@@ -64,7 +64,7 @@ export default function useControlledPointsStore() {
6464 spawningPointsL2 === null
6565 ) {
6666 _setControlledPoints(
67− JSON.stringify(Just(Result.Error('Failed to read the blockchain.')))
67+ Just(Result.Error('Failed to read the blockchain.'))
6868 );
6969 } else {
7070 await getPointsDetails(
@@ -112,7 +112,7 @@ export default function useControlledPointsStore() {
112112 }
113113 } catch (error) {
114114 console.error('failed to fetch controlled points', error);
115− _setControlledPoints(JSON.stringify(Just(Result.Error(error))));
115+ _setControlledPoints(Just(Result.Error(error.toString())));
116116 }
117117 }, [contracts, wallet, getPoints, getPointsDetails]);
118118