Skip to content

Commit

Permalink
fix: Corrected inscribe API error loading state and optimized auth pa…
Browse files Browse the repository at this point in the history
…ge icon display
  • Loading branch information
AricRedemption committed Mar 28, 2024
1 parent 455b558 commit dfdfe19
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ browser.runtime.onMessage.addListener(async (msg, sender) => {
if (msg.channel === 'to-bg') {
if (msg.eventName === 'networkChanged') {
network.value = msg.args[0]
console.log('network', network.value)
}
return
}
Expand Down
1 change: 0 additions & 1 deletion src/components/LoadingIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const props = defineProps<{
class?: string
}>()
console.log(props)
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/authorize/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const cancelAction = async () => {

<!-- logo -->
<div class="mt-4 flex h-24 w-24 items-center justify-center rounded-xl bg-gray-50 p-3 shadow-inner shadow-gray-300">
<img class="h-full w-full" :src="logo" alt="logo" v-if="logo" />
<img class="object-contain" :src="logo" alt="logo" v-if="logo" />
<LinkIcon class="h-16 w-16 text-gray-300" v-else />
</div>

Expand Down
3 changes: 2 additions & 1 deletion src/pages/authorize/Inscribe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ actions.Inscribe.process({ ...props.params, options: { noBroadcast: true } })
commitCost: number
revealCost: number
}) => {
loading.value = false
commitCost.value = _commitCost
revealCost.value = _revealCost
commitTxHex.value = _commitTxHex
Expand All @@ -58,6 +57,8 @@ actions.Inscribe.process({ ...props.params, options: { noBroadcast: true } })
)
.catch((err: Error) => {
error.value = err
}).finally(() => {
loading.value = false
})
const copy = (txHex: string) => {
Expand Down

0 comments on commit dfdfe19

Please sign in to comment.