We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 625c2af commit ffffd92Copy full SHA for ffffd92
src/components/hooks/__mocks__/useActivityStream.js
@@ -1,6 +1,3 @@
1
export default function useActivityStream(ID, adapter) {
2
- const [roomID] = Object.keys(adapter.datasource);
3
- const rooms = adapter.datasource;
4
-
5
- return ID === roomID ? rooms[`${ID}-activities`] : [];
+ return `${ID}-activities` in adapter.datasource ? adapter.datasource[`${ID}-activities`] : [];
6
}
0 commit comments