Skip to content

Commit

Permalink
Fixed bug: Input fields are breaking on change. (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
MitAbhay authored Mar 9, 2022
1 parent 9b2eb86 commit fdbcb9a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ const App = () => {
setAppState({ ...appState, CurrentPage: CurrentPage });
};
const SetSection = (Section, Content) => {
setAppState({ Resume: { ...appState.Resume, [Section]: Content } });
};
setAppState({
Resume: { ...appState.Resume, [Section]: Content },
CurrentPage: Section,
});
};
return (
<div className="rezume">
<Header
Expand All @@ -45,7 +48,7 @@ const App = () => {
Resume={appState.Resume}
SetSection={SetSection}
/>
<Footer/>
<Footer />
</div>
);
};
Expand Down

0 comments on commit fdbcb9a

Please sign in to comment.