Skip to content

Commit

Permalink
update qr
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCherepovskyi committed Mar 24, 2024
1 parent 333f5e3 commit 5c94b72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div v-if="isAppInitialized" class="app__container">
<app-navbar class="app__navbar" />

<router-view v-slot="{ Component, route }">
<transition
:name="route.meta.transition as string || 'fade'"
Expand Down
4 changes: 2 additions & 2 deletions src/common/modals/QrAuthModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script setup lang="ts">
import * as QRCode from 'qrcode'
import { Modal } from '@/common'
import { ref } from 'vue'
import { ref, watch } from 'vue'
const props = defineProps<{
isShown: boolean
Expand Down Expand Up @@ -37,7 +37,7 @@ const init = async () => {
)
}
init()
watch(props, init)
</script>

<style scoped lang="scss">
Expand Down
11 changes: 6 additions & 5 deletions src/pages/Vote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,20 @@ const vote = async () => {
votingOption: vote.attributes.id,
rank: id + 1,
}))
await validate()
} catch (error) {
ErrorHandler.process(error)
return
}
await validate()
}
const validate = async () => {
try {
return auth(nonce.value)
} catch (error) {
await sleep(1000)
await sleep(5000)
await auth(nonce.value)
} catch (error) {
await validate()
}
}
Expand Down

0 comments on commit 5c94b72

Please sign in to comment.