Shopify interview question

What would you do differently here?