Skip to content

Commit d36b308

Browse files
committed
fix: applied changes suggested by rabbitai
1 parent af39211 commit d36b308

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/cards/TranslationBox.tsx

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function TranslationBox({ text, defaultLocale, disabled, textCont
6666
const [locale, setLocale] = useState("");
6767
const [loading, setLoading] = useState(false);
6868
const [description, setDescription] = useState<string | null>("");
69-
const [reverted, setreverted] =useState(false)
69+
const [reverted, setReverted] =useState(false)
7070

7171
const { t } = useTranslation();
7272
const router = useRouter();
@@ -102,7 +102,7 @@ export default function TranslationBox({ text, defaultLocale, disabled, textCont
102102
}
103103

104104
setLoading(false);
105-
setreverted(false)
105+
setReverted(false)
106106
}, [getDefaultLocale, text]);
107107

108108
/**
@@ -112,7 +112,7 @@ export default function TranslationBox({ text, defaultLocale, disabled, textCont
112112

113113
const revert = () => {
114114
setCurrentText(text);
115-
setreverted(true);
115+
setReverted(true);
116116
setLocale(defaultLocale);
117117
};
118118

0 commit comments

Comments
 (0)