Created
November 28, 2016 14:43
-
-
Save foxbunny/c9a908cf8be90dfc5e15aeb20dbe5405 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// updateSearchPct :: s -> s -> s | |
export const updateSearchPct = match(ADD_FLIGHTS, | |
state => R.assoc('searchPct', | |
Math.round(state.tickets.length / state.searchTotal) * 100, state)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment