@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.
- package/dist/cjs/index.cjs +3 -1
- package/dist/es/index.js +3 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -707,7 +707,9 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
|
707
707
|
]);
|
|
708
708
|
react.useEffect(()=>{
|
|
709
709
|
if (!initialised && !loggedIn) {
|
|
710
|
-
void refreshUser().
|
|
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().
|
|
710
|
+
void refreshUser().catch(()=>{
|
|
711
|
+
console.error("Error refreshing user on TauntProvider init");
|
|
712
|
+
}).finally(()=>{
|
|
711
713
|
setInitialised(true);
|
|
712
714
|
});
|
|
713
715
|
}
|