Skip to content

Commit

Permalink
fixed date conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam committed May 9, 2024
1 parent a835aed commit 4b5d240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/collection/pages/collection/nfts/nfts.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { Subject, take, filter, takeUntil } from 'rxjs';
import { map, switchMap, tap } from 'rxjs/operators';
import { CartService } from '@components/cart/services/cart.service';
import { NzNotificationService } from 'ng-zorro-antd/notification';
import { state } from '@angular/animations';
import dayjs from 'dayjs';
import { CollectionNftStateService } from './collectionNfts.service';

// used in src/app/pages/collection/pages/collection/collection.page.ts
Expand Down Expand Up @@ -165,7 +165,7 @@ export class CollectionNFTsPage implements OnInit, OnChanges, OnDestroy {

const transformedItems = algoliaItems.map((algolia) => ({
...algolia,
availableFrom: Timestamp.fromMillis(+algolia.availableFrom),
availableFrom: Timestamp.fromDate(dayjs(algolia.availableFrom).toDate()),
}));

this.cd.markForCheck();
Expand Down

0 comments on commit 4b5d240

Please sign in to comment.