mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
eslint: Fix unicorn/require-number-to-fixed-digits-argument.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
4aff5b1d22
commit
7fd1e33d1b
@@ -185,7 +185,7 @@ export function load_messages(opts) {
|
|||||||
// floating point temporary IDs, which is intended to be a.
|
// floating point temporary IDs, which is intended to be a.
|
||||||
// completely client-side detail. We need to round these to
|
// completely client-side detail. We need to round these to
|
||||||
// the nearest integer before sending a request to the server.
|
// the nearest integer before sending a request to the server.
|
||||||
opts.anchor = opts.anchor.toFixed();
|
opts.anchor = opts.anchor.toFixed(0);
|
||||||
}
|
}
|
||||||
let data = {anchor: opts.anchor, num_before: opts.num_before, num_after: opts.num_after};
|
let data = {anchor: opts.anchor, num_before: opts.num_before, num_after: opts.num_after};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user