File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -81,18 +81,17 @@ export default function MapsBlockAppleEdit(props) {
8181 */
8282 const checkCredentials = async ( ) => {
8383 try {
84- const response = await apiFetch ( { path : 'MapsBlockApple/v1/GetJWT' } ) ;
85- // If the endpoint returns a JWT, treat as authenticated.
84+ const response = await apiFetch ( {
85+ path : 'MapsBlockApple/v1/GetJWT' ,
86+ } ) ;
8687 if ( response && response . jwt ) {
8788 return true ;
88- } else {
89- setIsLoading ( false ) ;
90- updateAuthenticationStatus ( false ) ;
91- return false ;
9289 }
90+
91+ setIsLoading ( false ) ;
92+ updateAuthenticationStatus ( false ) ;
93+ return false ;
9394 } catch ( error ) {
94- // If the endpoint returns an error, treat as unauthenticated.
95- console . error ( error ) ;
9695 setIsLoading ( false ) ;
9796 updateAuthenticationStatus ( false ) ;
9897 return false ;
You can’t perform that action at this time.
0 commit comments