components/app: move lastErrorID declaration down

Move it right before App, rather than drown in-between unrelated
functions.
This commit is contained in:
Simon Ser 2022-02-11 21:17:35 +01:00
parent dc398baa3b
commit fbc42b6dab

View file

@ -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(),