Skip to content

Fix unhandled error when attempting update of invalid phone configuration#6693

Merged
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/fix-telephone-update-500
Aug 4, 2022
Merged

Fix unhandled error when attempting update of invalid phone configuration#6693
mitchellhenke merged 2 commits intomainfrom
mitchellhenke/fix-telephone-update-500

Conversation

@mitchellhenke
Copy link
Contributor

No description provided.

@mitchellhenke mitchellhenke requested a review from solipet August 4, 2022 17:11
Copy link
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I might have written it as a guard, or like:

    if attributes[:phone_id].present?
      update_phone_configuration unless phone_configuration.nil?
    else

…tion

changelog: Bug Fixes, Account Management, Fix unhandled error when attempting update of invalid phone configuration
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/fix-telephone-update-500 branch from 537a105 to 7f3a6a2 Compare August 4, 2022 17:35
@mitchellhenke
Copy link
Contributor Author

mitchellhenke commented Aug 4, 2022

Looks good. I might have written it as a guard, or like:

    if attributes[:phone_id].present?
      update_phone_configuration unless phone_configuration.nil?
    else

That's much better, thank you (updated) 😅

@mitchellhenke mitchellhenke merged commit a8b946e into main Aug 4, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/fix-telephone-update-500 branch August 4, 2022 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants