mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Stop checking for allowed_broadcast_provider being None
The current_service.allowed_broadcast_provider is now always "all" or one of the four providers, which means we can simply the code by not checking if it is None.
This commit is contained in:
@@ -2321,7 +2321,7 @@ class ServiceBroadcastAccountTypeField(GovukRadiosField):
|
||||
if broadcast_channel:
|
||||
account_type = "live" if live else "training"
|
||||
account_type += f"-{broadcast_channel}"
|
||||
if allowed_broadcast_provider and allowed_broadcast_provider != 'all':
|
||||
if allowed_broadcast_provider != 'all':
|
||||
account_type += f"-{allowed_broadcast_provider}"
|
||||
|
||||
self.data = account_type
|
||||
|
||||
Reference in New Issue
Block a user