fix duplicate code after probably a merge

2 jobs from dev_cooperatic in 1 minute 36 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #2641
lint:js

00:23

passed #2642
unit:django

01:12