Fix confirmation send stuck (#3307)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-05-31 19:17:29 +06:00 committed by GitHub
parent 5b61ae8fa4
commit dafe568778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,20 @@
// limitations under the License.
-->
<script lang="ts">
import { Label } from '@hcengineering/ui'
import { Label, getCurrentLocation, navigate } from '@hcengineering/ui'
import login from '../plugin'
import { getAccount } from '../utils'
import { onMount } from 'svelte'
onMount(async () => {
const account = await getAccount()
if (account?.confirmed !== true) {
const loc = getCurrentLocation()
loc.path[1] = 'selectWorkspace'
loc.path.length = 2
navigate(loc)
}
})
</script>
<div class="flex-center h-full p-10">