fix bug
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<AssetsSection v-else @openGoldModal="openGoldModal" @openRialModal="openRialModal"/>
|
||||
|
||||
<!-- پیام بسته بودن بازار -->
|
||||
<MarketClosedMessage v-if="showClosedMessage" :message="closedMessage"/>
|
||||
<MarketClosedMessage v-if="showClosedMessage" :message="marketClosedText"/>
|
||||
|
||||
<!-- قیمت فعلی -->
|
||||
<CurrentPrice/>
|
||||
@@ -89,6 +89,7 @@ import {useConfigStore} from '@/store/configStore'
|
||||
import {useFundUserStore} from '@/store/fundStore'
|
||||
import {usePriceWithoutType} from '../../../utils/usePrice'
|
||||
import {getLastPrices, lastPrice, price, startLastPricePolling, stopLastPricePolling} from '@/utils/price'
|
||||
import { getStoreClosedMessage, isStoreClosed } from '@/utils/storeHours'
|
||||
import {getConstByKey} from '@/api/const'
|
||||
import {message, Modal} from 'ant-design-vue'
|
||||
|
||||
@@ -126,9 +127,11 @@ const { assetsSummary, loadWalletAssets } = useWalletAssets()
|
||||
// Config
|
||||
const isGaroosi = computed(() => configStore.config.name === 'garoosi')
|
||||
const closedMessage = computed(() => userStore.getValueByKey('closed_message'))
|
||||
const showClosedMessage = computed(() =>
|
||||
closedMessage.value &&
|
||||
lastPrice?.value?.price_last === 0)
|
||||
const marketClosedText = computed(() => {
|
||||
if (!isStoreClosed()) return ''
|
||||
return closedMessage.value || getStoreClosedMessage()
|
||||
})
|
||||
const showClosedMessage = computed(() => !!marketClosedText.value)
|
||||
|
||||
|
||||
// State
|
||||
|
||||
Reference in New Issue
Block a user