updating doesn't create new sale locally. fixed bug with no main photos causing forever wait on startup