diff --git a/web/src/v1.0.0/store/dao.state.ts b/web/src/v1.0.0/store/dao.state.ts index e3cb8edcd..8d330b880 100644 --- a/web/src/v1.0.0/store/dao.state.ts +++ b/web/src/v1.0.0/store/dao.state.ts @@ -145,7 +145,10 @@ export const daoEventListSelector = selectorFamily { - return a.updatedAt >= b.updatedAt ? -1 : 1 + if (a.updatedAt === b.updatedAt) { + return 0 + } + return a.updatedAt > b.updatedAt ? -1 : 1 }), } }, diff --git a/web/src/v2.0.0/store/dao.state.ts b/web/src/v2.0.0/store/dao.state.ts index 8d742bdd2..d70c3ba16 100644 --- a/web/src/v2.0.0/store/dao.state.ts +++ b/web/src/v2.0.0/store/dao.state.ts @@ -149,7 +149,10 @@ export const daoEventListSelector = selectorFamily { - return a.updatedAt >= b.updatedAt ? -1 : 1 + if (a.updatedAt === b.updatedAt) { + return 0 + } + return a.updatedAt > b.updatedAt ? -1 : 1 }), } }, diff --git a/web/src/v3.0.0/store/dao.state.ts b/web/src/v3.0.0/store/dao.state.ts index 1bfa0bf7c..9f225f4e4 100644 --- a/web/src/v3.0.0/store/dao.state.ts +++ b/web/src/v3.0.0/store/dao.state.ts @@ -150,7 +150,10 @@ export const daoEventListSelector = selectorFamily { - return a.updatedAt >= b.updatedAt ? -1 : 1 + if (a.updatedAt === b.updatedAt) { + return 0 + } + return a.updatedAt > b.updatedAt ? -1 : 1 }), } }, diff --git a/web/src/v4.0.0/store/dao.state.ts b/web/src/v4.0.0/store/dao.state.ts index 1bfa0bf7c..9f225f4e4 100644 --- a/web/src/v4.0.0/store/dao.state.ts +++ b/web/src/v4.0.0/store/dao.state.ts @@ -150,7 +150,10 @@ export const daoEventListSelector = selectorFamily { - return a.updatedAt >= b.updatedAt ? -1 : 1 + if (a.updatedAt === b.updatedAt) { + return 0 + } + return a.updatedAt > b.updatedAt ? -1 : 1 }), } }, diff --git a/web/src/v5.0.0/store/dao.state.ts b/web/src/v5.0.0/store/dao.state.ts index 1bfa0bf7c..9f225f4e4 100644 --- a/web/src/v5.0.0/store/dao.state.ts +++ b/web/src/v5.0.0/store/dao.state.ts @@ -150,7 +150,10 @@ export const daoEventListSelector = selectorFamily { - return a.updatedAt >= b.updatedAt ? -1 : 1 + if (a.updatedAt === b.updatedAt) { + return 0 + } + return a.updatedAt > b.updatedAt ? -1 : 1 }), } }, diff --git a/web/src/v5.1.0/store/dao.state.ts b/web/src/v5.1.0/store/dao.state.ts index 1bfa0bf7c..9f225f4e4 100644 --- a/web/src/v5.1.0/store/dao.state.ts +++ b/web/src/v5.1.0/store/dao.state.ts @@ -150,7 +150,10 @@ export const daoEventListSelector = selectorFamily { - return a.updatedAt >= b.updatedAt ? -1 : 1 + if (a.updatedAt === b.updatedAt) { + return 0 + } + return a.updatedAt > b.updatedAt ? -1 : 1 }), } }, diff --git a/web/src/v6.0.0/store/dao.state.ts b/web/src/v6.0.0/store/dao.state.ts index 1bfa0bf7c..9f225f4e4 100644 --- a/web/src/v6.0.0/store/dao.state.ts +++ b/web/src/v6.0.0/store/dao.state.ts @@ -150,7 +150,10 @@ export const daoEventListSelector = selectorFamily { - return a.updatedAt >= b.updatedAt ? -1 : 1 + if (a.updatedAt === b.updatedAt) { + return 0 + } + return a.updatedAt > b.updatedAt ? -1 : 1 }), } }, diff --git a/web/src/v6.1.0/store/dao.state.ts b/web/src/v6.1.0/store/dao.state.ts index 1bfa0bf7c..9f225f4e4 100644 --- a/web/src/v6.1.0/store/dao.state.ts +++ b/web/src/v6.1.0/store/dao.state.ts @@ -150,7 +150,10 @@ export const daoEventListSelector = selectorFamily { - return a.updatedAt >= b.updatedAt ? -1 : 1 + if (a.updatedAt === b.updatedAt) { + return 0 + } + return a.updatedAt > b.updatedAt ? -1 : 1 }), } },