Team-Pharos / FEC_Lighthouse

0 stars 5 forks source link

The else block can be omitted. So we can have less function calls but still same effect #110

Open FangzhuoXi opened 2 years ago

FangzhuoXi commented 2 years ago

Description: The else block can be omitted. So we can have less function calls but still same effect.

Files: https://github.com/Team-Pharos/FEC_Lighthouse/blob/47b9ec0dc4d9036de296df743ecc2f592ea5d160/src/components/Questions/SearchBar.jsx#L13-L15

Parkerjn90 commented 2 years ago

This is actually a necessary component! Part of it is if the user backspaces, the list needs to go back to an unflitered list! But it isn't an api call :)