eslint: Fix unicorn/require-number-to-fixed-digits-argument.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-06-07 19:05:33 -07:00
committed by Tim Abbott
parent 4aff5b1d22
commit 7fd1e33d1b

View File

@@ -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};