From bfc09602005586622f5f4b704d3b1689f2f3a9f8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 22 Jan 2021 21:43:58 +0100 Subject: [PATCH] Use buffer ID in BufferItem.onBufferClick --- components/app.js | 4 ++-- components/buffer-list.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/app.js b/components/app.js index 751a006..68480c7 100644 --- a/components/app.js +++ b/components/app.js @@ -821,8 +821,8 @@ export default class App extends Component { this.privmsg(buf.name, text); } - handleBufferListClick(name) { - this.switchBuffer({ name }); + handleBufferListClick(id) { + this.switchBuffer(id); } handleJoinClick(event) { diff --git a/components/buffer-list.js b/components/buffer-list.js index 8914b53..2491b98 100644 --- a/components/buffer-list.js +++ b/components/buffer-list.js @@ -49,7 +49,7 @@ export default function BufferList(props) { return html` `;