Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix timestamp calculation when filtering patches
Rūdolfs Ošiņš committed 1 year ago
commit fde8ca93d3030197e39b8ae9e2eeda84b378e385
parent 1775dd284d4001f73c7b45a0267434f50cfb41d2
1 file changed +2 -2
modified src/views/projects/Patch/PatchTeaser.svelte
@@ -17,8 +17,8 @@
  export let baseUrl: BaseUrl;
  export let patch: Patch;

-
  const latestRevisionIndex = patch.revisions.length - 1;
-
  const latestRevision = patch.revisions[latestRevisionIndex];
+
  $: latestRevisionIndex = patch.revisions.length - 1;
+
  $: latestRevision = patch.revisions[latestRevisionIndex];

  $: commentCount = patch.revisions.reduce(
    (acc, curr) => acc + curr.discussions.reduce(acc => acc + 1, 0),