Skip to content

Commit

Permalink
date obj
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajandeep98 committed Jan 15, 2025
1 parent b5d649e commit e60544c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { getPendingCoa } = useBcrosFilings()
const { filings } = storeToRefs(useBcrosFilings())
const { pendingFilings } = storeToRefs(useBcrosBusinessBootstrap())
const toast = useToast()
const initialDateString = ref<string | undefined>(undefined)
const initialDateString = ref<Date | undefined>(undefined)
const ui = useBcrosDashboardUi()
const hasDirector = computed(() => {
Expand Down Expand Up @@ -87,7 +87,7 @@ const fetchBusinessDetailsWithDelay = async (identifier: string) => {
const slimBusiness = await business.getBusinessDetails(identifier, undefined, true)
const lastModifiedDate = apiToDate(slimBusiness.lastModified)
const initialDate = business.initialDateString
console.log(initialDate,lastModifiedDate)

Check failure on line 90 in src/pages/dashboard.vue

View workflow job for this annotation

GitHub Actions / linting (20)

Unexpected console statement

Check failure on line 90 in src/pages/dashboard.vue

View workflow job for this annotation

GitHub Actions / linting (20)

A space is required after ','
if (lastModifiedDate.getTime() > initialDate.getTime()) {
toast.add({
id: 'outdated_data',
Expand Down

0 comments on commit e60544c

Please sign in to comment.