Fix Tauri auth in development (#635)

* Fix Tauri auth in development

* Fix Rust formatting
This commit is contained in:
Frank Noirot
2023-09-19 14:08:26 -04:00
committed by GitHub
parent 6675fa8d1e
commit ada46c4317
3 changed files with 30 additions and 4 deletions

View File

@ -6,9 +6,9 @@ export const Auth = ({ children }: React.PropsWithChildren) => {
const {
auth: { state },
} = useGlobalStateContext()
const isLoggedIn = state.matches('checkIfLoggedIn')
const isLoggingIn = state.matches('checkIfLoggedIn')
return isLoggedIn ? (
return isLoggingIn ? (
<Loading>Loading KittyCAD Modeling App...</Loading>
) : (
<>{children}</>