refactor: use variable instead of repeating event.data.type
refactor: use variable instead of repeating event.data.type

cozy/cozy-client-js,nono/cozy-client-js,cozy/cozy-client-js,nono/cozy-client-js,cozy/cozy-client-js,nono/cozy-client-js