Fix confirmation send stuck (#3307)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-05-31 20:17:29 +07:00
committed by GitHub
parent 5b61ae8fa4
commit dafe568778
@@ -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">