@redzone/taunt-logins-ui-react 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -707,7 +707,9 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
707
707
  ]);
708
708
  react.useEffect(()=>{
709
709
  if (!initialised && !loggedIn) {
710
- void refreshUser().then(()=>{
710
+ void refreshUser().catch(()=>{
711
+ console.error("Error refreshing user on TauntProvider init");
712
+ }).finally(()=>{
711
713
  setInitialised(true);
712
714
  });
713
715
  }
package/dist/es/index.js CHANGED
@@ -707,7 +707,9 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
707
707
  ]);
708
708
  useEffect(()=>{
709
709
  if (!initialised && !loggedIn) {
710
- void refreshUser().then(()=>{
710
+ void refreshUser().catch(()=>{
711
+ console.error("Error refreshing user on TauntProvider init");
712
+ }).finally(()=>{
711
713
  setInitialised(true);
712
714
  });
713
715
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redzone/taunt-logins-ui-react",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "main": "./dist/es/index.js",
6
6
  "module": "./dist/es/index.js",