Hello-World-Software-Studios / calculator

Carpenter's tool for wall layout
0 stars 1 forks source link

Fix converstion between Imperial / Metric #77

Closed ecumene closed 2 years ago

ecumene commented 2 years ago

500 mm !== 500 inches

ecumene commented 2 years ago

Rely on single source of truth to organize consumers of data...

Instead of N ternaries per data displayed, have 1 ternary for imperial / metric all the displays read from

JPM709 commented 2 years ago

Okay, I got it working. Units can change at will, and the lists refresh properly. No longer matters what the user's preference is when they save a wall; units are converted to inches on POST. Now I need to go through and check for repeated logic, i.e. find that single point of control