diff options
| -rw-r--r-- | slack_profile.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slack_profile.pl b/slack_profile.pl index 523d548..1c6f1a7 100644 --- a/slack_profile.pl +++ b/slack_profile.pl @@ -303,7 +303,7 @@ sub update_user_profile { # If $key is a custom field, find the custom field's id and use # that as the key instead. - unless ($key ~~ @profile_fields) { + unless (grep { $_ eq $key } @profile_fields) { # Find key in custom field labels for my $custom_field (keys %{$user->{'fields'}}) { if (underscorize($user->{'fields'}->{$custom_field}->{'label'}) |
