Skip to content

Commit

Permalink
fixed due to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Aug 4, 2021
1 parent ec3ec5d commit d386f02
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const RuleMutedSwitch: React.FunctionComponent<ComponentOpts> = ({
const [isMuted, setIsMuted] = useState<boolean>(alertInstance?.isMuted);
const [isUpdating, setIsUpdating] = useState<boolean>(false);

const res = isUpdating ? (
return isUpdating ? (
<EuiLoadingSpinner size="m" />
) : (
<EuiSwitch
Expand All @@ -43,5 +43,4 @@ export const RuleMutedSwitch: React.FunctionComponent<ComponentOpts> = ({
label="mute"
/>
);
return res;
};

0 comments on commit d386f02

Please sign in to comment.