Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorg7fd1e33d1b8b
diff --git a/static/js/message_fetch.js b/static/js/message_fetch.js
index 86bb7711cfb..af6c465c72b 100644
--- a/static/js/message_fetch.js
+++ b/static/js/message_fetch.js
@@ -185,7 +185,7 @@ export function load_messages(opts) {
// floating point temporary IDs, which is intended to be a.
// completely client-side detail. We need to round these to
// 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};