Fixed warnings
This commit is contained in:
parent
9cfbc08cec
commit
d430fbc502
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue