diff --git a/src/components/subscribe-rwa/index.vue b/src/components/subscribe-rwa/index.vue index 1648df3..2663c76 100644 --- a/src/components/subscribe-rwa/index.vue +++ b/src/components/subscribe-rwa/index.vue @@ -13,8 +13,9 @@ const emit = defineEmits<{ const { t } = useI18n(); const walletStore = useWalletStore(); +await walletStore.syncFundingBalances(); const { fundingBalances } = storeToRefs(walletStore); -const currentUSDTBalance = computed(() => fundingBalances.value[0].available); +const currentUSDTBalance = computed(() => fundingBalances.value[0]?.available || 0); const num = ref(null);