Scrabouillmax/Birdie_technical_test

Logic inside mapStateToProps

Opened this issue · 0 comments

let content = [[]];
let n_total_lines = 0;
// retrieve content for variable if it is saved in the app state
if (JSON.stringify(state.data.data)!==JSON.stringify({})){
content = state.data.data[state.selectedVariable].content;
n_total_lines = state.data.data[state.selectedVariable].n_total_lines;
}

Hi, i'm one of the developers from Birdie. I just want to ask a few questions concerning your code as I review it.

Is there somewhere more appropriate you could have put this logic?