From fbc42b6dab09ece4848a1856871135d6460cc2f2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 11 Feb 2022 21:17:35 +0100 Subject: [PATCH] components/app: move lastErrorID declaration down Move it right before App, rather than drown in-between unrelated functions. --- components/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/app.js b/components/app.js index 3c333cc..a0cb31e 100644 --- a/components/app.js +++ b/components/app.js @@ -143,8 +143,6 @@ function receiptFromMessage(msg) { return { time: msg.tags.time }; } -let lastErrorID = 0; - function getReceipt(stored, type) { if (!stored || !stored.receipts) { return null; @@ -170,6 +168,8 @@ function getLatestReceipt(bufferStore, server, type) { return last; } +let lastErrorID = 0; + export default class App extends Component { state = { ...State.create(),