fix some bugs
This commit is contained in:
@@ -32,7 +32,6 @@ export interface HomePageContext {
|
||||
homePageLoading: ReturnType<typeof useHomePageLoading>['homePageLoading']
|
||||
isGaroosi: ReturnType<typeof computed<boolean>>
|
||||
bannerEnabled: ReturnType<typeof computed<boolean>>
|
||||
limitedPrice: ReturnType<typeof computed>
|
||||
showClosedMessage: ReturnType<typeof computed<boolean>>
|
||||
closedMessage: ReturnType<typeof computed>
|
||||
mainActions: ReturnType<typeof computed<HomeActionItem[]>>
|
||||
@@ -89,7 +88,6 @@ export function useHomePage() {
|
||||
return custom || ''
|
||||
})
|
||||
const showClosedMessage = computed(() => !!marketClosedText.value)
|
||||
const limitedPrice = computed(() => walletStore.limitedPrice?.[0])
|
||||
const goldVal = computed(() => lastPrice.value?.price_last ?? 1)
|
||||
|
||||
const mainActions = computed<HomeActionItem[]>(() => [
|
||||
@@ -199,7 +197,7 @@ export function useHomePage() {
|
||||
const metalRial = resolveAssetsRialValue(summary, getTradeBuyPrice(lastPrice.value))
|
||||
Modal.confirm({
|
||||
title: 'دارایی ریالی',
|
||||
content: renderModalLines(formatRialAssetsInfoText(cash, metalRial)),
|
||||
content: renderModalLines(formatRialAssetsInfoText(cash, metalRial, summary?.portfolio)),
|
||||
okText: 'متوجه شدم',
|
||||
centered: true,
|
||||
cancelButtonProps: { style: { display: 'none' } },
|
||||
@@ -234,7 +232,6 @@ export function useHomePage() {
|
||||
homePageLoading,
|
||||
isGaroosi,
|
||||
bannerEnabled,
|
||||
limitedPrice,
|
||||
showClosedMessage,
|
||||
closedMessage: marketClosedText,
|
||||
mainActions,
|
||||
|
||||
Reference in New Issue
Block a user