Fixed warnings

This commit is contained in:
Takashi Shinohara 2022-04-27 15:53:21 +09:00
parent 9cfbc08cec
commit d430fbc502
1 changed files with 3 additions and 3 deletions

View File

@ -119,9 +119,9 @@ export const Ratings = ({ context, properties }: IRatingsProps) => {
React.useEffect(() => {
(async () => {
try {
const value = await getRating();
if (value) {
setValue(value);
const rating = await getRating();
if (rating) {
setValue(rating);
setLoading(false);
}
} catch (error) {