change condition

This commit is contained in:
liangping 2023-12-28 14:23:00 +08:00
parent ad1055d191
commit 7662350921

View File

@ -125,7 +125,7 @@ function updateTotalSigningInfo() {
const commits2 = computed(() => {
const la = baseStore.recents.map((b) => b.block.last_commit);
// trigger update total signing info
if(la.length > 0 && Number(la.at(0)?.height|| 0) % 10 === 7) {
if(la.length > 1 && Number(la.at(la.length-1)?.height|| 0) % 10 === 7) {
updateTotalSigningInfo();
};
const all = [...commits.value, ...la];