problem#
the fetchAppAvatar() function is completely duplicated in two files:
static/app.js:9-38(for user's app circles)static/login.js:78-99(for atmosphere orbs)
identical logic maintained in two places, violating DRY principle.
impact#
- harder to maintain
- bug fixes need to be applied twice
- inconsistencies can creep in
- increased bundle size
affected files#
static/app.jsstatic/login.js