Skip to content

Commit

Permalink
Simplify the if else statements
Browse files Browse the repository at this point in the history
Address #934 (comment)

Co-authored-by: Gan Eng Chin <ecgan@users.noreply.github.com>
  • Loading branch information
eason9487 and ecgan authored Aug 6, 2021
1 parent 63460f7 commit 537da07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/components/contact-information/phone-number-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default function PhoneNumberCard( {
}

let description = null;
let indicator = null;
let indicator = <Spinner />;

if ( loaded ) {
description = data.display;
Expand Down

0 comments on commit 537da07

Please sign in to comment.