From 5a61d5ab007f99583592b0b10c60108c173cf69d Mon Sep 17 00:00:00 2001 From: Dominik Zborowski Date: Tue, 12 Sep 2023 16:57:11 +0200 Subject: [PATCH 01/26] fix: Refresh app after disconnecting provider (#56) --- composables/useBrowserExtension.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composables/useBrowserExtension.ts b/composables/useBrowserExtension.ts index 8fd45749..e670277f 100644 --- a/composables/useBrowserExtension.ts +++ b/composables/useBrowserExtension.ts @@ -135,8 +135,13 @@ const providerEvents = async (provider: any) => { } } + const handleDisconnect = () => { + location.reload() + } + onMounted(async () => { provider?.on?.('accountsChanged', handleAccountsChanged) + provider?.on?.('disconnect', handleDisconnect) }) onUnmounted(() => { From c5850bb4af8d72c71b41adc12676efc1826faf0a Mon Sep 17 00:00:00 2001 From: Dominik Zborowski Date: Tue, 12 Sep 2023 16:57:35 +0200 Subject: [PATCH 02/26] fix: Fix for missing images or links (#57) --- components/asset-images.vue | 4 ++-- pages/[profileAddress]/token/[tokenAddress].vue | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/asset-images.vue b/components/asset-images.vue index ac373f66..6de5ecba 100644 --- a/components/asset-images.vue +++ b/components/asset-images.vue @@ -16,9 +16,9 @@ defineProps()
diff --git a/pages/[profileAddress]/token/[tokenAddress].vue b/pages/[profileAddress]/token/[tokenAddress].vue index 7f162877..bb3d78e0 100644 --- a/pages/[profileAddress]/token/[tokenAddress].vue +++ b/pages/[profileAddress]/token/[tokenAddress].vue @@ -62,7 +62,9 @@ watchEffect(() => {
{{ token?.data.name }}
Date: Tue, 12 Sep 2023 19:38:57 +0200 Subject: [PATCH 03/26] feat: Add amount field validations (#54) --- components/send-draft.vue | 59 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 4 deletions(-) diff --git a/components/send-draft.vue b/components/send-draft.vue index f42e0342..4638fc98 100644 --- a/components/send-draft.vue +++ b/components/send-draft.vue @@ -1,6 +1,7 @@