If there are any changes in the create role screen, we want to push the UnsavedChangesModal if a user tries to click "Back" or the X button on the Modal. I had to check elements individually for the
`rolePermissions` / `pendingRolePermissions` array since after selecting a permission and then deselecting it, simply using a `===` would no longer work on the two arrays since they would not be of the same
reference.
[[ https://linear.app/comm/issue/ENG-4428/handle-unsaved-changes-with-the-unsavedchangesmodal | ENG-4428 ]]
Depends on D8595