fix: Double trigger of loadLiquidityStats on initial mount (#361)

Remove redundant onMounted call that fired loadLiquidityStats() a second
time. The watch() with { immediate: true } already handles the initial
load and all subsequent dependency changes, making onMounted redundant.
Also remove now-unused onMounted import.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-03 07:52:02 +00:00
parent 5d1c715799
commit 5623768025

View file

@ -128,7 +128,7 @@
</template>
<script setup lang="ts">
import { computed, onMounted, ref, watch } from 'vue';
import { computed, ref, watch } from 'vue';
import FButton from '@/components/fcomponents/FButton.vue';
import FCard from '@/components/fcomponents/FCard.vue';
import FInput from '@/components/fcomponents/FInput.vue';
@ -270,12 +270,6 @@ watch(
{ immediate: true }
);
onMounted(() => {
if (!liquidityStats.value && !statsLoading.value) {
void loadLiquidityStats();
}
});
function resolveChainName(chainId: number): string {
switch (chainId) {
case 31337: