liinnjohansson / todays-lunch

0 stars 1 forks source link

Refactor MenuScreen so bistro is not optional #32

Closed liinnjohansson closed 3 years ago

liinnjohansson commented 3 years ago

Current code in MenuScreen lays the foundation for bistro to be optional in MenuScreen, MenuSheet and MenuInfoBox. It is using method find(), which can return undefined. Therefore the bistro object, used for getting right information, must be optional.

TODO: Check if there is a smarter way of dragging out requested bistro object from id, without using find-method.

find