diff --git a/pages/[profileAddress]/send.vue b/pages/[profileAddress]/send.vue index 07a4666b..b4140f14 100644 --- a/pages/[profileAddress]/send.vue +++ b/pages/[profileAddress]/send.vue @@ -17,7 +17,7 @@ const { isLoadedApp, isConnected } = storeToRefs(useAppStore()) const { setStatus, clearSend } = useSendStore() const { showModal } = useModal() const { formatMessage } = useIntl() -const { sendTransaction, getBalance, contract } = useWeb3(PROVIDERS.INJECTED) +const { sendTransaction, contract } = useWeb3(PROVIDERS.INJECTED) const assetRepository = useRepo(AssetRepository) onMounted(() => { @@ -92,7 +92,7 @@ const handleSend = async () => { } as TransactionConfig await sendTransaction(transaction) - await updateLyxBalance() + await updateLyxBalance(connectedProfile.value?.address) } else { // custom token transfer switch (asset.value?.standard) { @@ -160,15 +160,6 @@ const handleSend = async () => { }) } } - -const updateLyxBalance = async () => { - assertString(connectedProfile.value?.address) - const balance = await getBalance(connectedProfile.value.address) - - useRepo(ProfileModel) - .where('address', connectedProfile.value.address) - .update({ balance }) -}