Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #39 from scrum-gang/fix/company-load
Browse files Browse the repository at this point in the history
fix: load company names
  • Loading branch information
CamiloGarciaLaRotta authored Feb 25, 2019
2 parents 6f07e16 + 731d5e6 commit 39b9628
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/JobApp.re
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ let make = (~submitHandler, ~signOutHandler, ~jwt, _children) => {
let setResumes = x => self.send(UpdateResumes(x));
ReasonReact.UpdateWithSideEffects(
self.state,
_self => Services.loadCompanyNames(setCompanyNames),
);
ReasonReact.UpdateWithSideEffects(
self.state,
_self =>
_self => {
Services.loadCompanyNames(setCompanyNames);
Services.getResumeRevisions(jwt, setResumes, _ =>
failwith("Failed to load resumes")
),
);
},
);
},
render: self => {
Expand Down

0 comments on commit 39b9628

Please sign in to comment.