Skip to content

Commit ef8a374

Browse files
committed
Fix sorting
1 parent d0b55c7 commit ef8a374

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/api/validator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,11 @@ export const fetchSignals = ({ validatorId, version, limit, offset }) => {
171171
}
172172
}
173173

174-
export const fetchValidatorMessages = ({ id, limit, offset }) => {
174+
export const fetchValidatorMessages = ({ id, sort, limit, offset }) => {
175175
try {
176176
const url = new URL(`${useServerURL()}/validators/${id}/messages`)
177177

178+
url.searchParams.append("sort", sort ?? "desc")
178179
if (limit) url.searchParams.append("limit", limit)
179180
if (offset) url.searchParams.append("offset", offset)
180181

0 commit comments

Comments
 (0)