fix: keep birthdays and show Shamsi dates
Imported customers keep their birthday, and assistant text plus remaining calendars use the Jalali date. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import axios from 'axios';
|
||||
import { api } from '@/lib/api';
|
||||
import JalaliDateInput from '@/components/JalaliDateInput.vue';
|
||||
import { brand, type NoteAiPayloadDto, type NoteAiSuggestionDto } from '@mento/shared';
|
||||
import { rewriteGregorianDates } from '@/lib/jalali';
|
||||
|
||||
const props = defineProps<{
|
||||
noteId: string;
|
||||
@@ -142,7 +143,7 @@ async function dismiss() {
|
||||
|
||||
function formatPayloadSummary(value: NoteAiPayloadDto | null) {
|
||||
if (!value?.summary) return '';
|
||||
return value.summary;
|
||||
return rewriteGregorianDates(value.summary);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user