Yardım amaçlı piyangolar için ikramiye teslim tarihi min hatası

This commit is contained in:
M. Bestami
2025-10-02 12:52:29 +03:00
parent 5e83a11ecc
commit cab06c51a2

View File

@ -167,7 +167,19 @@ export const usePiyangoValidationStore = defineStore('piyangoValidationStore', (
}
})
const ikramiyeTeslimMin = computed((): Date => {
return piyangoStore.lotteryData.yedekSonBasvuruTarihi
var date: Date = new Date()
if (piyangoStore.lotteryData.amacpiyangoId !== 2) {
date = new Date(piyangoStore.lotteryData.yedekSonBasvuruTarihi)
} else {
date = new Date(piyangoStore.lotteryData.asilSonBasvuruTarihi)
}
var year = date.getFullYear()
var month = date.getMonth()
var day = date.getDate()
let newDate = new Date(year, month, day + 1)
return newDate
})
const ikramiyeTeslimMax = computed((): Date => {
var date: Date = new Date()