asdas
Some checks failed
Deploy / deploy-staging (push) Failing after 12s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-08-20 21:15:00 +02:00
parent c345ee71cf
commit ee536eac2a

View File

@@ -1505,6 +1505,12 @@
}, [currentSettings.crypto_currency]); }, [currentSettings.crypto_currency]);
useEffect(() => { useEffect(() => {
if (activeTab !== 'mining') {
setPreviewMinerOffers([]);
setPreviewOffersLoading(false);
return undefined;
}
const shouldPreview = selectedOfferType === 'crypto' const shouldPreview = selectedOfferType === 'crypto'
? Number(offerPreviewForm.crypto_base_price_amount) > 0 ? Number(offerPreviewForm.crypto_base_price_amount) > 0
: Number(offerPreviewForm.fiat_base_price_amount) > 0 && Number(minerOfferFilters.speed_min) > 0; : Number(offerPreviewForm.fiat_base_price_amount) > 0 && Number(minerOfferFilters.speed_min) > 0;
@@ -1544,6 +1550,7 @@
minerOfferFilters.speed_min, minerOfferFilters.speed_min,
projectKey, projectKey,
selectedOfferType, selectedOfferType,
activeTab,
]); ]);
useEffect(() => { useEffect(() => {