Skip to content

Commit

Permalink
Solve bug where topic did not update on settings change
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-karlsson committed Mar 28, 2024
1 parent 3dda98a commit 8f50d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Landing from "./components/Landing";
import Welcome from "./components/Welcome";
import Topics from "./components/Topics";
import Foods from "./components/Foods";
import Navbar from "./components/Navbar";
import Council from "./components/Council";

function App() {
Expand Down Expand Up @@ -54,8 +53,9 @@ function App() {
setCurrentView(pages[nextIndex]);
}

function changeSettings() {
function changeSettings(topic) {
// TODO: Restart discussion
setTopic(topic);
setIsActiveOverlay(true);
setCurrentView("foods");
}
Expand Down

0 comments on commit 8f50d5c

Please sign in to comment.